def __setitem__(self, key, val):
if not isinstance(key, six.string_types):<EOL><INDENT>raise TypeError<EOL><DEDENT>if key not in self._columns.keys():<EOL><INDENT>raise KeyError<EOL><DEDENT>return setattr(self, key, val)<EOL>
Sets a column's value.