Skip to content

Remove deprecated Index methods from Frame - #11073

Merged
rapids-bot[bot] merged 7 commits into
NVIDIA:branch-22.08from
vyasr:deprecation/removals2208
Jun 18, 2022
Merged

Remove deprecated Index methods from Frame#11073
rapids-bot[bot] merged 7 commits into
NVIDIA:branch-22.08from
vyasr:deprecation/removals2208

Conversation

@vyasr

@vyasr vyasr commented Jun 7, 2022

Copy link
Copy Markdown
Contributor

This PR moves a number of methods from Frame to IndexedFrame that are no longer supported for Index objects. The one holdout is Frame.replace, which is also deprecated for Index but is used internally by Index methods in one place. In order to make this PR as simple to review as possible, I have omitted that function here. All changes in this PR are trivial moves of code aside from the deletions of the warnings.

@vyasr vyasr added 3 - Ready for Review Ready for review by team Python Affects Python cuDF API. tech debt improvement Improvement / enhancement to an existing function breaking Breaking change labels Jun 7, 2022
@vyasr vyasr added this to the CuDF Python Refactoring milestone Jun 7, 2022
@vyasr vyasr self-assigned this Jun 7, 2022
@vyasr
vyasr requested a review from a team as a code owner June 7, 2022 23:24
@vyasr
vyasr requested review from charlesbluca and shwina June 7, 2022 23:24

@bdice bdice left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. I verified that this is a trivial move of the existing code into classes where it fits better. I am leaving this review pretty minimal since the sole purpose of this PR is to clean up where methods are defined -- I'm leaving any improvements to those methods out of the scope of this PR. Thanks @vyasr for this!

@vyasr

vyasr commented Jun 8, 2022

Copy link
Copy Markdown
Contributor Author

Blocked on #11070

@shwina

shwina commented Jun 8, 2022

Copy link
Copy Markdown
Contributor

rerun tests

1 similar comment
@vyasr

vyasr commented Jun 16, 2022

Copy link
Copy Markdown
Contributor Author

rerun tests

@codecov

codecov Bot commented Jun 18, 2022

Copy link
Copy Markdown

Codecov Report

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

@@               Coverage Diff               @@
##             branch-22.08   #11073   +/-   ##
===============================================
  Coverage                ?   86.33%           
===============================================
  Files                   ?      144           
  Lines                   ?    22729           
  Branches                ?        0           
===============================================
  Hits                    ?    19624           
  Misses                  ?     3105           
  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 aec9007...33c3ffa. Read the comment docs.

@vyasr

vyasr commented Jun 18, 2022

Copy link
Copy Markdown
Contributor Author

@gpucibot merge

@rapids-bot
rapids-bot Bot merged commit d6c56fe into NVIDIA:branch-22.08 Jun 18, 2022
@vyasr
vyasr deleted the deprecation/removals2208 branch June 18, 2022 00:17
@vyasr vyasr mentioned this pull request Jun 22, 2022
rapids-bot Bot pushed a commit that referenced this pull request Jun 23, 2022
This PR is a follow-up to #11073. Its sole purpose is to remove the deprecated public `replace` API for Index objects. A stripped down, minimal version of this logic has been inlined in `DataFrame.rename`, which is the only place that needs that functionality. The scope of this PR is intentionally limited so that further changes can happen in parallel with changes associated with the removal of `Frame._index`, which should no longer be necessary after this PR is merged (aside from its potential usage in internal Cython code that can be freely worked around).

Authors:
  - Vyas Ramasubramani (https://github.com/vyasr)

Approvers:
  - Ashwin Srinath (https://github.com/shwina)

URL: #11131
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 breaking Breaking change improvement Improvement / enhancement to an existing function Python Affects Python cuDF API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants