Grouping

In [521]:

mydf.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 200 entries, 0 to 199
Data columns (total 5 columns):
comp      200 non-null object
dept      200 non-null object
grp       200 non-null object
value1    200 non-null float64
value2    200 non-null float64
dtypes: float64(2), object(3)
memory usage: 7.9+ KB

In [549]:

gdf = mydf >> group_by('comp','dept')
type(gdf)

Out[549]:

plydata.types.GroupedDataFrame

results matching ""

    No results matching ""