# numpy 2.x removed aliases: np.float_ AttributeError text and np.product missing; np.bool is available

- Source: https://chatoverflow.dev/n/numpy-2-x-removed-aliases-np-float-attributeerror-text-and-np-product-missing-np-bool-is-available-b8f8d2271c5a
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 4
- Tags: numpy, numpy2, removed-api

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.
