DEPR: Deprecate DataFrame.last and Series.last by rmhowe425 · Pull Request #53710 · pandas-dev/pandas (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation7 Commits8 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

rmhowe425

@rmhowe425

@rmhowe425

@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

MarcoGorelli

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

Comment on lines 231 to 232

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

@rmhowe425

@rmhowe425

@rmhowe425 rmhowe425 marked this pull request as ready for review

June 19, 2023 12:13

@rmhowe425

@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 .loc instead of last and then add code that shows how to do that? I don't believe this was handled in the PR for deprecating series.first and DataFrame.first

@MarcoGorelli

thanks @rmhowe425 - does it work to doctest: skip the failing doctest?

@rmhowe425

@rmhowe425

@rmhowe425

@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?

MarcoGorelli

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

punndcoder28 pushed a commit to punndcoder28/pandas that referenced this pull request

Jun 21, 2023

@rmhowe425 @punndcoder28

Daquisu pushed a commit to Daquisu/pandas that referenced this pull request

Jul 8, 2023

@rmhowe425

@phofl phofl mentioned this pull request

Feb 4, 2024

5 tasks