Skip to content

Conversation

@phofl
Copy link
Member

@phofl phofl commented Sep 3, 2023

@phofl phofl added the Warnings Warnings that appear or should be added to pandas label Sep 3, 2023
@phofl phofl added this to the 2.1.1 milestone Sep 3, 2023
@torext
Copy link
Contributor

torext commented Sep 5, 2023

@phofl I arrived here because I was about to submit a bug report on this issue. However, looking at the commited change above I notice it won't fix the issue for DataFrames: the 3 changed lines in pandas/core/generic.py only work if self is a Series, not when it's a DataFrame, I believe.

@phofl
Copy link
Member Author

phofl commented Sep 5, 2023

good point, fixed

@mroeschke mroeschke merged commit 88683e9 into pandas-dev:main Sep 6, 2023
@mroeschke
Copy link
Member

Thanks @phofl

@phofl phofl deleted the 54981 branch September 6, 2023 22:40
meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Sep 6, 2023
mroeschke pushed a commit that referenced this pull request Sep 7, 2023
…ry FutureWarning) (#55040)

Backport PR #54983: BUG: pct_change showing unnecessary FutureWarning

Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Sep 11, 2023
* BUG: pct_change showing unnecessary FutureWarning

* Fix df case

* Fix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Warnings Warnings that appear or should be added to pandas

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: FutureWarning on pct_change() suggests a solution that does not always work.

3 participants