BUG: masked mean unnecessarily overflowing by phofl · Pull Request #48378 · pandas-dev/pandas (original) (raw)
Ah, nice, this is possible now because we require numpy >= 1.20 (the where
keyword was only added later to mean
)
Do we want to add mean to the Masked Array interface (I would say yes, but want to check anyway)? This would simplify things a bit.
Yeah, I am not really sure why historically sum, prod, etc are methods, while mean is only handled inside _reduce