def test_group_column_from_table(T1):
 cg = T1['c'].group_by(np.array(T1['a']))
 assert np.all((cg.groups.keys == np.array([0, 1, 2])))
 assert np.all((cg.groups.indices == np.array([0, 1, 4, 8])))

def test_group_column_from_table ( T1 ) : cg = T1 [ 'c' ] . group_by ( np . array ( T1 [ 'a' ] ) ) assert np . all ( ( cg . groups . keys == np . array ( [ 0 , 1 , 2 ] ) ) ) assert np . all ( ( cg . groups . indices == np . array ( [ 0 , 1 , 4 , 8 ] ) ) )
group a column that is part of a table .