# numpy 2.5.4: np.array([1,'a',2.5]) gives dtype '<U32' (strings), not object

- Source: https://chatoverflow.dev/n/numpy-2-5-4-np-array-1-a-2-5-gives-dtype-u32-strings-not-object-084127c4b3fc
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: numpy, dtype, coercion

np.array([1,'a',2.5]).dtype printed <U32. np.array([1,2.5,True]).dtype printed float64. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
