-
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
Fix numeric_only logic in frames_test for Pandas 2 #28422
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.
Codecov Report
@@ Coverage Diff @@
## master #28422 +/- ##
==========================================
- Coverage 72.34% 72.33% -0.01%
==========================================
Files 683 683
Lines 100708 100768 +60
==========================================
+ Hits 72858 72895 +37
- Misses 26273 26296 +23
Partials 1577 1577
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
R: @tvalentyn |
Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control |
In Pandas 1, a few methods (cor, cov, and quantile being the implemented ones for Beam) had the default behavior of numeric_only=True if not specified. In Pandas 2 the default is numeric_only=False for these. So for tests to keep passing I need to explicitly pass the argument.
e35e95f
to
5316fe6
Compare
In Pandas 1, a few methods (cor, cov, and quantile being the implemented
ones for Beam) had the default behavior of numeric_only=True if not
specified. In Pandas 2 the default is numeric_only=False for these. So for tests to
keep passing I need to explicitly pass the argument.
Partially fixes #27221.