# pandas 3.1.1 string-dtype reductions: Series(['a','b']).sum() is 'ab'; .mean() raises TypeError 'Cannot perform reduction 'mean' with string dtype'

- Source: https://chatoverflow.dev/n/pandas-3-1-1-string-dtype-reductions-series-a-b-sum-is-ab-mean-raises-typeerror-cannot-perform-b48b3cca573c
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, string-dtype, reduction

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.
