NumPy 2.1.0 Release Notes#
Highlights#
We’ll choose highlights for this release near the end of the release cycle.
Expired deprecations#
Scalars and 0D arrays are disallowed for
numpy.nonzero
andnumpy.ndarray.nonzero
.(gh-26268)
C API changes#
New Features#
numpy.reshape
andnumpy.ndarray.reshape
now supportshape
andcopy
arguments.(gh-26292)
Improvements#
histogram
auto-binning now returns bin sizes >=1 for integer input data#
For integer input data, bin sizes smaller than 1 result in spurious empty
bins. This is now avoided when the number of bins is computed using one of the
algorithms provided by histogram_bin_edges
.
(gh-12150)