-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DataFrame.pct_change
should default fill_method=None
instead of 'pad'
#28461
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
Can you add a reproducible example? It's not quite clear from the code what you would be looking for. FWIW #25291 has some new functionality which maybe covers what you are looking for, though that PR has gone stale. If it covers it would certainly welcome you picking that one up |
Looks like @TomAugspurger made a comment to this effect on that PR. I'll check it out... someday :-) . |
OK - closing this as a duplicate of what the PR already solves then, but again if it's something different feel free to provide a reproducible code sample with expected values and can reopen |
I misspoke earlier. The referenced PR does not put the default behavior into a deprecation cycle, which is the goal of this issue. |
As this is not a duplicate, can the duplicate label be removed? What needs to be done to get this issue resolved/implemented? |
this is a duplicate of #25006 there is a closed PR that almost ready (referenced from the above issue) |
Both
DataFrame.pct_change
andSeries.pct_change
should have default behavior that matches the "obvious" implementation:Unfortunately, the default behavior is set to
fill_method='pad'
which surprises many people (#6389). We should start a deprecation cycle to change the default to behave as expected,fill_method=None
. I don't believe this will be disruptive, as most people think that's how it behaves currently, as far as I know.The text was updated successfully, but these errors were encountered: