-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BooleanArray, StringArray value_counts na_value #30685
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
That's clearly a bug in the BooleanArray.value_counts implementation. And indeed, we should use pd.NA instead of np.nan in the object index. |
@jbrockmendel you have an open PR that relates to EA.value_counts. Does that in some way also fixes this? (otherwise I can have a look at this issue) |
No, that shouldn't change any behavior. I think the fix is fairly straightforward for BooleanArray, on L572 |
* BUG: BooleanArray.value_counts dropna Closes #30685
Instead of two False entries, one of them should be pd.NA right? cc @TomAugspurger
The NaN should be pd.NA right?
Side-note: the defaults for dropna are not consistent across our EAs
The text was updated successfully, but these errors were encountered: