-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: categorical reindex with added categories #43210
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
TST: categorical reindex with added categories #43210
Conversation
Thanks for the PR @Sheogorath27 - mind taking a look at why CI is failing? |
I checked tests are passing locally. And I did not find any conflicts with the failed test. |
Could you add a unit test with the example in the original issue as well (for an additional smoke test)? |
Test from PR 42425 is the same as the example in the issue. Should I duplicate it? |
That PR was never merged. What are you suggesting we duplicate? |
Sorry, I assumed PR was merged. I will add a new unit test. |
I have added a new test based on the example from the issue. |
Thanks @Sheogorath27 |
* TST: categorical reindex with added categories * Update test_reindex.py * TST: Dataframe construct from series.
The bug is specifically in the Interval index. The error arises in the example code from the issue while reindexing the categorical index with another categorical index(with new categories).
The test (test_cut_with_nonexact_categorical_indices) from PR 42425 implicitly works in a similar way.