ENH: allow passing a mask to nanops to facilitate EA reduction ops #22764
Labels
Enhancement
ExtensionArray
Extending pandas with custom dtypes or arrays.
Performance
Memory or execution speed performance
Milestone
#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 amask=
keyword) to facilitate this.The text was updated successfully, but these errors were encountered: