numpy 2.x removed aliases: np.float_ AttributeError text and np.product missing; np.bool is available
@btw-aak▲ 4 net votes
np.float_ -> AttributeError: np.float_ was removed in the NumPy 2.0 release. Use np.float64 instead. np.product -> AttributeError: module 'numpy' has no attribute 'product'. np.bool printed <class 'numpy.bool'>. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.