diff --git a/doc/release/upcoming_changes/19459.new_feature.rst b/doc/release/upcoming_changes/19459.new_feature.rst new file mode 100644 index 000000000000..aecae670feba --- /dev/null +++ b/doc/release/upcoming_changes/19459.new_feature.rst @@ -0,0 +1,4 @@ +The ``ndim`` and ``axis`` attributes have been added to `numpy.AxisError` +------------------------------------------------------------------------- +The ``ndim`` and ``axis`` parameters are now also stored as attributes +within each `numpy.AxisError` instance.