def stats(self, ops=(min, max, np.median, sum)):
names = [op.__name__ for op in ops]<EOL>ops = [_zero_on_type_error(op) for op in ops]<EOL>columns = [[op(column) for op in ops] for column in self.columns]<EOL>table = type(self)().with_columns(zip(self.labels, columns))<EOL>stats = table._unused_label('<STR_LIT>')<EOL>table[stats] = names<EOL>table.move_to_start(stats)<EOL>return table<EOL>
Compute statistics for each column and place them in a table.