Skip to content

BUG: Prevent erroring out when comparing unordered categories with different permutations #51678

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

Conversation

ParthivNaresh
Copy link

Previously the hash of the Categorical dtype was used for comparing to see if the two Categorical instances could be considered equivalent. Even if the categories are the same and the only difference is the order this doesn't always result in the same hash, for example when the categories consist of a combination of string and numeric values.

@ParthivNaresh ParthivNaresh marked this pull request as draft February 27, 2023 21:39
@AlexKirko
Copy link
Member

Hello, @ParthivNaresh , how are things? Looks like you almost finished this, wondering if everything is okay.

@github-actions
Copy link
Contributor

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

@github-actions github-actions bot added the Stale label Apr 17, 2023
@mroeschke
Copy link
Member

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

@mroeschke mroeschke closed this Apr 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Unable to compare unordered categories
3 participants