Skip to content

CLN: Refactor nanops' empty array handling #18976

@TomAugspurger

Description

@TomAugspurger

In

if values.size == 0 and kwds.get('min_count') is None:

It'd be better to remove that block and just have each of the nan* methods correctly handle empty arrays on their own.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Missing-datanp.nan, pd.NaT, pd.NA, dropna, isnull, interpolateReduction Operationssum, mean, min, max, etc.RefactorInternal refactoring of code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions