Skip to content
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

Merged
merged 36 commits into from
Sep 18, 2023

Conversation

caneff
Copy link
Contributor

@caneff caneff commented Sep 12, 2023

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.

@codecov
Copy link

codecov bot commented Sep 12, 2023

Codecov Report

Merging #28422 (ccd88be) into master (108680a) will decrease coverage by 0.01%.
Report is 33 commits behind head on master.
The diff coverage is 100.00%.

@@            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              
Flag Coverage Δ
python 82.82% <100.00%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
sdks/python/apache_beam/dataframe/frames.py 95.37% <ø> (ø)
sdks/python/apache_beam/dataframe/frame_base.py 89.45% <100.00%> (+0.20%) ⬆️

... and 11 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@caneff caneff marked this pull request as ready for review September 14, 2023 17:22
@caneff
Copy link
Contributor Author

caneff commented Sep 14, 2023

R: @tvalentyn

@github-actions
Copy link
Contributor

Stopping reviewer notifications for this pull request: review requested by someone other than the bot, ceding control

@caneff caneff marked this pull request as draft September 15, 2023 16:19
@caneff caneff marked this pull request as ready for review September 15, 2023 16:44
@caneff caneff marked this pull request as draft September 15, 2023 18:26
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.
@caneff caneff marked this pull request as ready for review September 17, 2023 23:59
@caneff caneff requested a review from tvalentyn September 17, 2023 23:59
@tvalentyn tvalentyn merged commit 71c68ca into apache:master Sep 18, 2023
75 of 77 checks passed
@caneff caneff deleted the numeric_only branch September 21, 2023 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Pandas==2.x in Apache Beam.
2 participants