-
Notifications
You must be signed in to change notification settings - Fork 915
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
[BUG] Make name attr of Index fast slow attrs #16270
Merged
rapids-bot
merged 12 commits into
rapidsai:branch-24.08
from
Matt711:bug/fix-index-name
Jul 16, 2024
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
e20356c
Initial commit
Matt711 515e19e
Merge branch 'branch-24.08' of github.com:rapidsai/cudf into bug/inde…
Matt711 604d107
Add a test
Matt711 3604ce3
Fix typo xpd not pd
Matt711 b019868
Merge branch 'branch-24.08' of github.com:rapidsai/cudf into bug/inde…
Matt711 3ad0081
Fix index names
Matt711 e741b72
Change _name to name
Matt711 38c3b78
Missed one
Matt711 2bc8427
Merge branch 'branch-24.08' into bug/fix-index-name
galipremsagar e06eacd
remove __setattr__
Matt711 21b7126
Merge branch 'bug/fix-index-name' of github.com:Matt711/cudf into bug…
Matt711 e71ec51
revert
Matt711 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the usage of
_FastSlowAttribute
I don't think we needIndex__setattr__
anymore.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, except for MultiIndex.
edit: It might need some more customization because it doesn't just yet without
Index__setattr__
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't defining
names
Fastslow attribute for MultiIndex just do the job?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
names
attr in Pandas is set withproperty
like this. I think_set_names
is not being picked up for some reasonThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pd.MultiIndex([]).names = ... isn't doing anything
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No I think we still need
Index__setattr__
in Index types. This issue address the problem described here.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel if we do this for one attribute we will have to end up doing the same for every attribute, which is why I think there could be a better approach to solve this problem. Let's pair on this tomorrow ?