You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Missing Built-in methods for SeriesGroupBy ffill #8708
Some of the "built-in" methods for dask SeriesGroupBy objects are missing.
In pandas we could do something like...
import numpy as np
import pandas as pd
df = pd.DataFrame({
'a_cat': list('aabbbaccc'),
'b_num': [np.nan if i%3!=0 else (i+1) for i in range(9)]
})
df.groupby('a_cat')['b_num'].ffill()
But when I try to do it in Dask..
import dask.dataframe as dd
ddf = dd.from_pandas(df)
ddf.groupby('a_cat')['b_num'].ffill()
I receive an AttributeError: 'SeriesGroupBy' object has no attribute 'ffill'
I'm hoping this can be implemented along with the other fillna methods. Thanks.
Activity
jsignell commentedon Feb 16, 2022
Thanks for opening this issue @CJC-ds if you would like to work on it please feel free to open a pull request!
pavithraes commentedon Mar 8, 2022
I'd like to take a pass at this, I'll open a PR soon :)