Skip to content

Commit c2fc313

Browse files
committed
DOC: fix incorrect versionadded for np.std
1 parent a4e227a commit c2fc313

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

numpy/_core/fromnumeric.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,7 +1520,7 @@ def searchsorted(a, v, side='left', sorter=None):
15201520
>>> sorter
15211521
array([1, 2, 3, 0]) # Indices that would sort the array 'a'
15221522
>>> result = np.searchsorted(a, 25, sorter=sorter)
1523-
>>> result
1523+
>>> result
15241524
2
15251525
>>> a[sorter[result]]
15261526
30 # The element at index 2 of the sorted array is 30.
@@ -3921,7 +3921,7 @@ def std(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, *,
39213921
The axis for the calculation of the mean should be the same as used in
39223922
the call to this std function.
39233923
3924-
.. versionadded:: 1.26.0
3924+
.. versionadded:: 2.0.0
39253925
39263926
correction : {int, float}, optional
39273927
Array API compatible name for the ``ddof`` parameter. Only one of them
@@ -4268,4 +4268,3 @@ def var(a, axis=None, dtype=None, out=None, ddof=0, keepdims=np._NoValue, *,
42684268

42694269
return _methods._var(a, axis=axis, dtype=dtype, out=out, ddof=ddof,
42704270
**kwargs)
4271-

0 commit comments

Comments
 (0)