-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Minimum of ordered categorical data in Panda DataFrames #25299
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
Comments
Thanks for the report! I can confirm this regression. |
So it seems that the |
I dove into this a bit, but shouldn't the argument be |
I agree with you ! It makes no sense to use this argument while the argument used to removed NaNs in all other Pandas' methods is |
To add to the confusion, |
@arnov I actually thought exactly the same when answering on this issue, so I opened #25303 (but forgot to link to it here). So I agree that Short term, I think it would be good to "just" fix it using |
closed by #25304 |
I have a Pandas DataFrame with one Serie containing ordered Categorical data. Some value of this Serie may be missing (NaN). I want to get the minimum without taking into account NaNs but I obtained strange results ...
Code:
Output:
Expected utput:
I am getting the desired output when running this code with pandas 0.23.4 but not with pandas 0.24.0 and above.
Is this an issue or a misunderstanding? Thank you for your help.
The text was updated successfully, but these errors were encountered: