ballet.eng.ts module¶
-
class
ballet.eng.ts.
SingleLagger
(lag, groupby_kwargs=None)[source]¶ Bases:
ballet.eng.base.GroupedFunctionTransformer
Transformer that applies a lag operator to each group
- Parameters
lag (
int
) – lag to applygroupby_kwargs (
Optional
[dict
]) – keyword arguments to pd.DataFrame.groupby