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

Consolidate some Frame APIs #10381

Merged

Conversation

vyasr
Copy link
Contributor

@vyasr vyasr commented Mar 2, 2022

This PR contributes to #9038 by combining common code for append, astype, drop, and explode. It's not a small LOC change, but most of the changed lines are just moving code around. Some minor rewrites of astype in this PR do significantly speed up those calls (2x faster for <1M rows). Additionally, I've deprecated append since it is now deprecated in pandas. Note that it has not been removed in pandas, so we should not remove it until they do.

@vyasr vyasr added 3 - Ready for Review Ready for review by team code quality Python Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 2, 2022
@vyasr vyasr added this to the CuDF Python Refactoring milestone Mar 2, 2022
@vyasr vyasr requested a review from a team as a code owner March 2, 2022 01:25
@vyasr vyasr self-assigned this Mar 2, 2022
@vyasr vyasr requested review from trxcllnt and galipremsagar March 2, 2022 01:25
@codecov
Copy link

codecov bot commented Mar 2, 2022

Codecov Report

Merging #10381 (6e70699) into branch-22.04 (1e5b01f) will increase coverage by 0.00%.
The diff coverage is 0.00%.

❗ Current head 6e70699 differs from pull request most recent head 4b00874. Consider uploading reports for the commit 4b00874 to get more accurate results

Impacted file tree graph

@@              Coverage Diff              @@
##           branch-22.04   #10381   +/-   ##
=============================================
  Coverage         10.50%   10.50%           
=============================================
  Files               126      126           
  Lines             21218    21206   -12     
=============================================
  Hits               2228     2228           
+ Misses            18990    18978   -12     
Impacted Files Coverage Δ
python/cudf/cudf/core/_base_index.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/dataframe.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/index.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/indexed_frame.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/multiindex.py 0.00% <0.00%> (ø)
python/cudf/cudf/core/series.py 0.00% <0.00%> (ø)

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 1e5b01f...4b00874. Read the comment docs.

python/cudf/cudf/core/dataframe.py Outdated Show resolved Hide resolved
python/cudf/cudf/core/series.py Show resolved Hide resolved
python/cudf/cudf/core/indexed_frame.py Show resolved Hide resolved
@vyasr vyasr force-pushed the refactor/frame_api_consolidation branch from 893f4dd to e35b82b Compare March 3, 2022 00:52
…e_api_consolidation

# Conflicts:
#	python/cudf/cudf/core/index.py
#	python/cudf/cudf/core/multiindex.py
#	python/cudf/cudf/core/series.py
@vyasr
Copy link
Contributor Author

vyasr commented Mar 7, 2022

@gpucibot merge

@rapids-bot rapids-bot bot merged commit e610108 into rapidsai:branch-22.04 Mar 7, 2022
@vyasr vyasr deleted the refactor/frame_api_consolidation branch March 9, 2022 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 - Ready for Review Ready for review by team 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