lag_obj=Lag(aggregation="sum",value=5)'''This means taking previous 5 values and perform `sum`. When used inside pipeline, this will be applied to all the columns.If used inside DataFrameMapper, the it will be applied to only those columns which are inside DataFrameMapper.''' ...