-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
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
DEPR: Deprecate DataFrame.last and Series.last #53710
Conversation
@MarcoGorelli Is something going on with the CI environment? The tests that are failing for this PR are not failing locally for me when I run pytest. The same tests also started failing in #53439 this morning after I updated my entry in whatsnew v2.1.0. None of the failing tests seem to have anything to do with whats being changed in the PR hmmmm |
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.
thanks for your pr, generally looks good
failures might be unrelated - just got a minor comment, if you address that and then fetch and merge upstream/main then hopefully it'll be resolved
pandas/core/generic.py
Outdated
Parameters | ||
Parameters |
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.
no need to duplicate this
@MarcoGorelli The Doc build test failure seems to be unrelated The docstring test is failing because the warning message that I imeplemented is executing. Since this method is being deprecated what would be the recommended solution in this instance? Should I add an additional note in the docstring to create a mask and filter using |
thanks @rmhowe425 - does it work to |
@MarcoGorelli Doc tests passing now. Ready for review. 😄 The two failing unit tests still don't seem to be related to the PR. Just out of curiosity, when updating doc strings for methods that will be deprecated, is the correct approach to skip doc tests for those methods? |
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 one @rmhowe425 !
* Adding implementation for deprecation and entry in whatsnew file * Updating unit tests to account for deprecating of series.last() and DataFrame.last() * Added deprecation message in doc string * Adding PR number to new unit test * Removing duplicate "Parameters" docstring header * Adding doctest skip for call to last()
* Adding implementation for deprecation and entry in whatsnew file * Updating unit tests to account for deprecating of series.last() and DataFrame.last() * Added deprecation message in doc string * Adding PR number to new unit test * Removing duplicate "Parameters" docstring header * Adding doctest skip for call to last()
* Adding implementation for deprecation and entry in whatsnew file * Updating unit tests to account for deprecating of series.last() and DataFrame.last() * Added deprecation message in doc string * Adding PR number to new unit test * Removing duplicate "Parameters" docstring header * Adding doctest skip for call to last()
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.