def test_can_use_metas_as_new_columns(self):
_, _, m = column_sizes(self.table)
order = [random.randrange(-m + 1, 0) for _ in self.domain.metas]
new_metas = [self.domain.metas[::-1][i] for i in order]
new_domain = self.create_domain(new_metas, new_metas, new_metas)
new_table = data.Table.from_table(new_domain, self.table)
After Change
def test_can_use_metas_as_new_columns(self):
_, _, m = column_sizes(self.table)
order = np.random.permutation(range(-m, 0))
new_metas = [self.domain.metas[::-1][i] for i in order]
new_domain = self.create_domain(new_metas[0:2], [new_metas[2]], new_metas[3:5])
new_table = data.Table.from_table(new_domain, self.table)
self.assert_table_with_filter_matches(