puffbird.FrameEngine.to_puffy

FrameEngine.to_puffy(*indexcols, keep_missing_idcs=True, aggfunc=CallableContainer(list), dropna=True)[source]

Make the table “puffier” by aggregating across unique sets of “index columns”.

Warning

to_puffy is currently an experimental method and so it may change significantly in future releases.

Parameters
indexcolsstr

Set of “index columns” to aggregate over using groupby.

keep_missing_idcsbool, optional

If True, aggregate index columns not in the indexcols argument. Defaults to True.

aggfunccallable or dict of callables, optional

The function used to aggregate “data columns” and any missing indices. Defaults to list.

dropnabool, optional

Drop NaNs in table before aggregating.

Returns
DataFrame