I would like to scale some operations I do on pandas dataframe using dask 2.14. For example I would like to apply a shift on a column of a dataframe:
import dask.dataframe as dd
data = dd.read_csv('some_file.csv')
data.set_index('column_A')
data['column_B'] = data.groupby(['column_A'])['column_B'].shift(-1)
but I get AttributeError: 'SeriesGroupBy' object has no attribute 'shift'
I read the dask documentation and I saw that there is not such a method (while there was in pandas)
Can you suggest some valid alternative?
Thank you