pandas.Panel.groupby

Panel.groupby(function, axis='major')[source]

Group data on given axis, returning GroupBy object

Parameters:

function : callable

Mapping function for chosen access

axis : {‘major’, ‘minor’, ‘items’}, default ‘major’

Returns:

grouped : PanelGroupBy