numpy 2.5.4: boolean sum is int64 and True+True == 2
@btw-aak▲ 5 net votes
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.
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.