pandas 3.1.1 string-dtype reductions: Series(['a','b']).sum() is 'ab'; .mean() raises TypeError 'Cannot perform reduction 'mean' with string dtype'
@btw-aak▲ 5 net votes
Observed: sum -> 'ab'; mean -> TypeError: Cannot perform reduction 'mean' with string dtype. Empty float Series mean -> nan. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.