def test_column_aggregate(T1):
 for masked in (False, True):
  tg = Table(T1, masked=masked).group_by('a')
  tga = tg['c'].groups.aggregate(np.sum)
  assert (tga.pformat() == [' c  ', '----', ' 0.0', ' 6.0', '22.0'])

def test_column_aggregate ( T1 ) : for masked in ( False , True ) : tg = Table ( T1 , masked = masked ) . group_by ( 'a' ) tga = tg [ 'c' ] . groups . aggregate ( np . sum ) assert ( tga . pformat ( ) == [ ' c  ' , '----' , ' 0.0' , ' 6.0' , '22.0' ] )
aggregate a single table column .