ENH: make sure return dtypes for nan funcs are consistent by mortada · Pull Request #10251 · pandas-dev/pandas (original) (raw)
this is a follow-up to #10172
In addition to mean(), this PR also makes sure the returned dtype is consistent for std(), var(), skew(), and kurt()