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

BUG: Series.Count() miscounts NA values in ExtensionArrays #26835

Closed
ghost opened this issue Jun 13, 2019 · 2 comments · Fixed by #26836
Closed

BUG: Series.Count() miscounts NA values in ExtensionArrays #26835

ghost opened this issue Jun 13, 2019 · 2 comments · Fixed by #26836
Labels
Bug ExtensionArray Extending pandas with custom dtypes or arrays.
Milestone

Comments

@ghost
Copy link

ghost commented Jun 13, 2019

Code Sample, a copy-pastable example if possible

In [9]: import numpy as np
   ...: import pandas as np
   ...: from pandas.tests.extension.decimal.array import to_decimal
   ...: ser = pd.Series(to_decimal([1,2,3]))
   ...: ser[0]=np.nan
   ...: ser.count()
3
@TomAugspurger
Copy link
Contributor

TomAugspurger commented Jun 13, 2019 via email

@ghost
Copy link
Author

ghost commented Jun 13, 2019

already have one lined up, just opened this for a whatsnew reference. we mentioned this in #26730

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug ExtensionArray Extending pandas with custom dtypes or arrays.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants