diff options
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/ma/core.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/core.py b/numpy/ma/core.py index ca233ca9f..9386ff3be 100644 --- a/numpy/ma/core.py +++ b/numpy/ma/core.py @@ -4362,7 +4362,7 @@ class MaskedArray(ndarray): if self.shape is (): if axis not in (None, 0): - raise np.AxisError("'axis' entry is out of bounds") + raise np.AxisError(axis=axis, ndim=self.ndim) return 1 elif axis is None: if kwargs.get('keepdims', False): |