You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "", line 1, in
File "<array_function internals>", line 5, in std
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3560, in std
return _methods._std(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/_methods.py", line 261, in _std
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/_methods.py", line 200, in _var
if ddof >= rcount if where is True else umr_any(ddof >= rcount):
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
NumPy/Python version information:
1.20.1 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0]
The text was updated successfully, but these errors were encountered:
An error is raised when invoking both the
axis
andwhere
arguments in numpy.std for arrays of dimension greater than 2.Reproducing code example:
Error message:
Traceback (most recent call last):
File "", line 1, in
File "<array_function internals>", line 5, in std
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/fromnumeric.py", line 3560, in std
return _methods._std(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/_methods.py", line 261, in _std
ret = _var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
File "/home/grant/.local/lib/python3.8/site-packages/numpy/core/_methods.py", line 200, in _var
if ddof >= rcount if where is True else umr_any(ddof >= rcount):
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
NumPy/Python version information:
1.20.1 3.8.5 (default, Jan 27 2021, 15:41:15)
[GCC 9.3.0]
The text was updated successfully, but these errors were encountered: