def copy(self, *, shallow=False):
table = type(self)()<EOL>for label in self.labels:<EOL><INDENT>if shallow:<EOL><INDENT>column = self[label]<EOL><DEDENT>else:<EOL><INDENT>column = np.copy(self[label])<EOL><DEDENT>self._add_column_and_format(table, label, column)<EOL><DEDENT>return table<EOL>
Return a copy of a table.