-
Notifications
You must be signed in to change notification settings - Fork 4.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
Support kw only arguments for frame methods for Pandas 2 #28454
Conversation
Level was always NotImplemented anyway, and errors I conditionally disable based on the pandas version to keep functionality.
Pandas removed .append in 2.0 so this helps keep the API consistent.
Pandas 2 has made most args of most methods kw only. This still supports Pandas 1 while allowing for those.
R: @tvalentyn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
Run Python_Coverage PreCommit |
Run Python_Runners PreCommit |
Codecov Report
@@ Coverage Diff @@
## master #28454 +/- ##
==========================================
- Coverage 72.34% 72.34% -0.01%
==========================================
Files 683 683
Lines 100708 100715 +7
==========================================
+ Hits 72858 72859 +1
- Misses 26273 26279 +6
Partials 1577 1577
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 9 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Run Python PreCommit |
Run Python_Runners PreCommit |
Run Python PreCommit |
Pandas 2 turns most args of most of its methods into kwonly args.
args_to_kwargs and populate_defaults needed to be changed to look there, and there were a few locations that called pandas methods by location only that had to be updated to call by keyword.
Partially fixes #27221.