def __setitem__(self, index, value):
if not isinstance(value, dict):<EOL><INDENT>raise TypeError('<STR_LIT>')<EOL><DEDENT>for val in value.values():<EOL><INDENT>self._detect_or_validate(val)<EOL><DEDENT>self._row[index] = value<EOL>
Replace the row at index.