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

Implement update() function #6883

Merged
merged 23 commits into from
Jan 21, 2021
Merged

Conversation

skirui-source
Copy link
Contributor

@skirui-source skirui-source commented Dec 2, 2020

Resolves: #5543

This PR adds support for updating a DataFrame with non-NA values from another DataFrame, whereby only the values at matching index/column labels are updated. Only left join is supported, keeping the index and columns of original DataFrame.

@GPUtester
Copy link
Collaborator

Please update the changelog in order to start CI tests.

View the gpuCI docs here.

@codecov
Copy link

codecov bot commented Dec 17, 2020

Codecov Report

Merging #6883 (994fe70) into branch-0.18 (8860baf) will increase coverage by 0.06%.
The diff coverage is 83.97%.

Impacted file tree graph

@@               Coverage Diff               @@
##           branch-0.18    #6883      +/-   ##
===============================================
+ Coverage        82.09%   82.16%   +0.06%     
===============================================
  Files               97       97              
  Lines            16474    16571      +97     
===============================================
+ Hits             13524    13615      +91     
- Misses            2950     2956       +6     
Impacted Files Coverage Δ
python/cudf/cudf/_lib/__init__.py 100.00% <ø> (ø)
python/cudf/cudf/core/column/lists.py 91.66% <ø> (-0.09%) ⬇️
python/cudf/cudf/utils/ioutils.py 78.71% <ø> (ø)
python/cudf/cudf/io/orc.py 86.89% <63.63%> (-1.51%) ⬇️
python/cudf/cudf/core/dtypes.py 89.50% <66.66%> (-0.88%) ⬇️
python/cudf/cudf/core/dataframe.py 90.49% <72.41%> (-0.22%) ⬇️
python/cudf/cudf/core/series.py 91.10% <80.00%> (-0.06%) ⬇️
python/cudf/cudf/core/reshape.py 91.00% <81.81%> (-0.04%) ⬇️
python/cudf/cudf/core/column/numerical.py 94.08% <83.33%> (-0.33%) ⬇️
python/cudf/cudf/io/csv.py 91.66% <86.66%> (-1.67%) ⬇️
... and 11 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 4111cb7...994fe70. Read the comment docs.

python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
@galipremsagar galipremsagar changed the title [WIP] implementing update() function [REVIEW] implementing update() function Dec 19, 2020
@galipremsagar galipremsagar added 0 - Waiting on Author Waiting for author to respond to review Python Affects Python cuDF API. feature request New feature or request labels Dec 19, 2020
@galipremsagar galipremsagar added the non-breaking Non-breaking change label Dec 19, 2020
python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/tests/test_dataframe.py Outdated Show resolved Hide resolved
Copy link
Contributor

@galipremsagar galipremsagar left a comment

Choose a reason for hiding this comment

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

What @isVoid said + Could you also mentioned some clear description in your PR about the changes you are making? This is required as the merge-bot would use whatever you provide in PR description in the commit message.

@galipremsagar galipremsagar added 0 - Waiting on Author Waiting for author to respond to review and removed 3 - Ready for Review Ready for review by team labels Jan 15, 2021
@skirui-source skirui-source added 3 - Ready for Review Ready for review by team and removed 0 - Waiting on Author Waiting for author to respond to review labels Jan 21, 2021
Copy link
Contributor

@galipremsagar galipremsagar left a comment

Choose a reason for hiding this comment

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

This is good to go 🎉 , good job @skirui-source !

@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 labels Jan 21, 2021
@galipremsagar galipremsagar added 4 - Needs cuDF (Python) Reviewer and removed 5 - Ready to Merge Testing and reviews complete, ready to merge labels Jan 21, 2021
@galipremsagar
Copy link
Contributor

@isVoid Could you also have a look at this PR as you requested changes, I think your concerns have been addressed.

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.

Yep! It looks great! Awesome work!

@isVoid isVoid changed the title [REVIEW] implementing update() function Implement update() function Jan 21, 2021
@isVoid isVoid added 5 - Ready to Merge Testing and reviews complete, ready to merge and removed 4 - Needs cuDF (Python) Reviewer labels Jan 21, 2021
@galipremsagar
Copy link
Contributor

@gpucibot merge

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 feature request New feature or request non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEA] update() method is missing
4 participants