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

Change return type of MultiIndex.codes #14123

Closed
wants to merge 4 commits into from

Conversation

galipremsagar
Copy link
Contributor

Description

Fixes: #14084

This PR fixes the return type of MultiIndex.codes to bring parity with pandas.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@galipremsagar galipremsagar added bug Something isn't working 3 - Ready for Review Ready for review by team 4 - Needs cuDF (Python) Reviewer non-breaking Non-breaking change labels Sep 18, 2023
@galipremsagar galipremsagar self-assigned this Sep 18, 2023
@galipremsagar galipremsagar requested a review from a team as a code owner September 18, 2023 19:36
@github-actions github-actions bot added the Python Affects Python cuDF API. label Sep 18, 2023
if self._codes is None:
self._compute_levels_and_codes()
return self._codes
return pd.core.indexes.frozen.FrozenList(
Copy link
Contributor

Choose a reason for hiding this comment

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

Just FYI I am planning on changing this to a tuple instead of FrozenList in pandas 3.0, not sure if there's any impact changing to a tuple now pandas-dev/pandas#53582

@galipremsagar
Copy link
Contributor Author

closing this PR

@vyasr vyasr added 4 - Needs Review Waiting for reviewer to review or respond and removed 4 - Needs cuDF (Python) Reviewer labels Feb 23, 2024
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 4 - Needs Review Waiting for reviewer to review or respond bug Something isn't working non-breaking Non-breaking change Python Affects Python cuDF API.
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[BUG] Incorrect output type for MultiIndex.codes
3 participants