craftutils.wrap.dragons.Table.Column.group_by(keys)

Group this column by the specified keys

This effectively splits the column into groups which correspond to unique values of the keys grouping object. The output is a new Column or MaskedColumn which contains a copy of this column but sorted by row according to keys.

The keys input to group_by must be a numpy array with the same length as this column.

Parameters

keysnumpy array

Key grouping object

Returns

outColumn

New column with groups attribute set accordingly