New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pd.Series.ffill() raise the error: AttributeError: 'numpy.ndarray' object has no attribute 'ffill' #4577
Comments
@VasilijKolomiets thank you for reporting this issue! I can reproduce it at Modin version 4ec7f63: import modin.pandas as pd
df = pd.DataFrame([[1]], columns=['col0'])
df.col0 = [3]
print(f'The entire dataframe: {df}')
print(f'df.col0: {df.col0}')
print(f'df["col0"]: {df["col0"]}')
print(df.col0.ffill) In Modin, I get If I can see a quick fix, I'll assign this issue to myself and make the fix. |
In the snippet I posted above, the Modin dataframe's I can't take this on right now, so I'll leave it unassigned. |
So what have I to do to obtain result as in 'pure pandas'? Or just wait a bit? ) |
@VasilijKolomiets unfortunately it turns out that that won't work in Modin either 😢 Modin assigns the right-hand side as-is to the attribute instead of pointing the attribute to the the new column. import modin.pandas as pd
df = pd.DataFrame([[1]], columns=['col0'])
df.col0 = pd.Series([3])
df.iloc[0, 0] = 4
# BUG: col0 is unchanged!!!
assert df.col0.equals(df['col0']) What you can do instead is use import modin.pandas as pd
df = pd.DataFrame([[1]], columns=['col0'])
df['col0'] = pd.Series([3])
df.iloc[0, 0] = 4
assert df.col0.equals(df['col0']) Meanwhile, @pyrito will work on a PR that should fix all the bugs identified here. |
Thanks a lot! |
…alue Signed-off-by: Karthik Velayutham <vkarthik@ponder.io>
System information
0.15.0+7.g4ec7f634
):Describe the problem
I have the output:
Problem
When new column was filled with
np.where
- methodffill
does not workThe text was updated successfully, but these errors were encountered: