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 warnings in test_binops.py. #10327

Merged
merged 3 commits into from
Feb 23, 2022

Conversation

bdice
Copy link
Contributor

@bdice bdice commented Feb 17, 2022

This PR catches or silences warnings in test_binops.py. (I am working through one test file at a time so we can enable -Werr in the future.) Most of the warnings come from deprecated binops inside cudf. Once the deprecated code is removed, these tests will fail until the workaround is removed.

Another warning comes from numpy, DeprecationWarning: elementwise comparison failed; this will raise an error in the future.. This warning can be circumvented by comparing with series == scalar instead of scalar == series. I believe that seeing this warning is expected when comparing scalar == series, if both numpy and pandas/cudf implement __eq__ that accept one another's array-like types, but I'm not certain.

@bdice bdice requested a review from a team as a code owner February 17, 2022 22:50
@github-actions github-actions bot added the Python Affects Python cuDF API. label Feb 17, 2022
@bdice bdice added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Feb 17, 2022
@bdice bdice self-assigned this Feb 17, 2022
@codecov
Copy link

codecov bot commented Feb 18, 2022

Codecov Report

Merging #10327 (1fef179) into branch-22.04 (a7d88cd) will increase coverage by 0.19%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff                @@
##           branch-22.04   #10327      +/-   ##
================================================
+ Coverage         10.42%   10.61%   +0.19%     
================================================
  Files               119      122       +3     
  Lines             20603    20981     +378     
================================================
+ Hits               2148     2228      +80     
- Misses            18455    18753     +298     
Impacted Files Coverage Δ
python/cudf/cudf/_fuzz_testing/fuzzer.py 0.00% <ø> (ø)
python/cudf/cudf/_fuzz_testing/io.py 0.00% <ø> (ø)
python/cudf/cudf/_fuzz_testing/main.py 0.00% <ø> (ø)
python/cudf/cudf/_version.py 0.00% <ø> (ø)
python/cudf/cudf/comm/gpuarrow.py 0.00% <ø> (ø)
python/cudf/cudf/core/_base_index.py 0.00% <ø> (ø)
python/cudf/cudf/core/column/categorical.py 0.00% <ø> (ø)
python/cudf/cudf/core/column/column.py 0.00% <ø> (ø)
python/cudf/cudf/core/column/datetime.py 0.00% <ø> (ø)
python/cudf/cudf/core/column/methods.py 0.00% <ø> (ø)
... and 61 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d48dd6f...1fef179. Read the comment docs.

@bdice
Copy link
Contributor Author

bdice commented Feb 23, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 2a2e3f0 into rapidsai:branch-22.04 Feb 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants