def remove(self, row_or_row_indices):
if not row_or_row_indices:<EOL><INDENT>return<EOL><DEDENT>if isinstance(row_or_row_indices, int):<EOL><INDENT>rows_remove = [row_or_row_indices]<EOL><DEDENT>else:<EOL><INDENT>rows_remove = row_or_row_indices<EOL><DEDENT>for col in self._columns:<EOL><INDENT>self._columns[col] = [elem for i, elem in enumerate(self[col]) if i not in rows_remove]<EOL><DEDENT>return self<EOL>
Removes a row or multiple rows of a table in place.