Skip to content

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

Closed
@ghost

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugExtensionArrayExtending pandas with custom dtypes or arrays.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions