Skip to content

BUG: NaN vs NA in mixed reduction #62024

@jbrockmendel

Description

@jbrockmendel
df = pd.DataFrame(
    {
        "B": [1, None, 3],
        "C": pd.array([1, None, 3], dtype="Int64"),
    }
)
result = df.skew()

>>> result
B    <NA>
C    <NA>
dtype: Float64

>>> df[["B"]].skew()
B   NaN
dtype: float64

Based on test_mixed_reductions. The presence of column "C" shouldn't affect the result we get for column "B".

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugPDEP missing valuesIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprintReduction Operationssum, mean, min, max, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions