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

[REVIEW] Fix replace to handle null values correctly #8744

Merged
merged 8 commits into from
Jul 20, 2021

Conversation

galipremsagar
Copy link
Contributor

@galipremsagar galipremsagar commented Jul 14, 2021

Fixes: #7293

This PR introduces fixes to replace and it's internal APIs which error/fault when there is a None/<NA> value on either lhs or rhs and certain combinations of each. Introduced tests where there were failures previously that are covered by new changes in this PR.

@galipremsagar galipremsagar added the 2 - In Progress Currently a work in progress label Jul 14, 2021
@github-actions github-actions bot added the Python Affects Python cuDF API. label Jul 14, 2021
@galipremsagar galipremsagar added 3 - Ready for Review Ready for review by team 4 - Needs cuDF (Python) Reviewer bug Something isn't working non-breaking Non-breaking change and removed 2 - In Progress Currently a work in progress labels Jul 19, 2021
@galipremsagar galipremsagar marked this pull request as ready for review July 19, 2021 18:32
@galipremsagar galipremsagar requested a review from a team as a code owner July 19, 2021 18:32
@galipremsagar galipremsagar changed the title [WIP] Fix replace to handle null values correctly [REVIEW] Fix replace to handle null values correctly Jul 19, 2021
@galipremsagar
Copy link
Contributor Author

rerun tests

Copy link
Contributor

@isVoid isVoid left a comment

Choose a reason for hiding this comment

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

Just small changes.

python/cudf/cudf/core/column/string.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/column/string.py Show resolved Hide resolved
python/cudf/cudf/core/column/categorical.py Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 19, 2021

Codecov Report

❗ No coverage uploaded for pull request base (branch-21.08@43de98a). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##             branch-21.08    #8744   +/-   ##
===============================================
  Coverage                ?   10.51%           
===============================================
  Files                   ?      116           
  Lines                   ?    18957           
  Branches                ?        0           
===============================================
  Hits                    ?     1993           
  Misses                  ?    16964           
  Partials                ?        0           

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 43de98a...749380a. Read the comment docs.

@galipremsagar galipremsagar added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 3 - Ready for Review Ready for review by team 4 - Needs cuDF (Python) Reviewer labels Jul 19, 2021
@galipremsagar
Copy link
Contributor Author

@gpucibot merge

@rapids-bot rapids-bot bot merged commit 0e59d05 into rapidsai:branch-21.08 Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] replace fails with RuntimeError when to_replace is None.
2 participants