API: BooleanArray any/all with NA logic by jorisvandenbossche · Pull Request #30062 · pandas-dev/pandas (original) (raw)

What happens with np.any with this? Do we need any keywords for compatibility?

Yes, still need to do that. If we want this to work (without getting into __array_function__ for now), we need to add at least axis and out.

Is the expected behavior here different from nanops.nanany? / nanops.nanall?

Ah, didn't look yet at those. They actually accept a mask. The approach they take is to fill the missing values with a fill_value (instead of filtering as I did here).
But, we would still need the custom logic to decide when something should return pd.NA or not, so not fully sure it is worth to reuse those (will also do some timings tomorrow).

Also still need to add docstrings.