-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DEPR: DataFrame.resample axis parameter #51901
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
Conversation
From the original issue. The |
The docs build seems to have failed. |
pandas/core/generic.py
Outdated
axis = self._get_axis_number(axis) | ||
if axis == 1: | ||
warnings.warn( | ||
"DataFrame.ewm with axis=1 is deprecated. Do " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one query here -
- should we make this message separate for DataFrame vs Series
- or use a common generic message without usage of the words DataFrame/Series
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can use f"{type(self).__name__}.ewm with ..."
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice ! will update the PR
seems like this issue has already been worked upon and merged by #51997 ( CC: @jbrockmendel , @mroeschke ) |
Ah yes, sorry @dannyi96. As you mentioned, this PR can still deprecate the axis parameter for resample if you're still interested |
Sure @mroeschke , have updated the PR |
Nice thanks @dannyi96 |
doc/source/whatsnew/v2.1.0.rst
file if fixing a bug or adding a new feature.