Skip to content

ENH: allow passing a mask to nanops to facilitate EA reduction ops #22764

Closed
@jreback

Description

@jreback

#22762 (comment)

currently we call nanops like

nansum(values, skipna=boolean)

this doesn't allow us to take advantage of knowing the nan mask a-priori (e.g. in an IntegerArray), and instead re-computes it based on the values (only).

We could allow skipna= to take a mask as well here (or add a mask= keyword) to facilitate this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementExtensionArrayExtending pandas with custom dtypes or arrays.PerformanceMemory or execution speed performance

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions