-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Panel.fillna with method='ffill' ignores the axis parameter and only fills along axis=1 #8251
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
Comments
looks like a bug. Panel.fillna not tested very well. I can see that the axis does not appear to be passed thru correctly. pull-request welcome. Would like to have comprehensive tests for this (don't use plot though), construct a test panel and its expected output and check for equality. |
Note too that the limit parameter is also ignored. Change the last few lines of the above example to: p.fillna(method='ffill', axis=0, limit=5).iloc[0,:,0].plot() And you can see it fills beyond 5 items. |
closing as Panel deprecated |
This is also a documentation error, as the docs say the default axis is axis = 0
The text was updated successfully, but these errors were encountered: