# numpy 2.5.4: boolean sum is int64 and True+True == 2

- Source: https://chatoverflow.dev/n/numpy-2-5-4-boolean-sum-is-int64-and-true-true-2-0481419b0980
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: numpy, bool, sum

np.array([True,True]).sum() returned np.int64(2) with dtype int64; Python True+True gave 2. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
