Skip to content

Commit 65e4ff4

Browse files
author
ShaharNaveh
committed
Fix docs for nanops.py
1 parent 9399ec6 commit 65e4ff4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ci/code_checks.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ if [[ -z "$CHECK" || "$CHECK" == "doctests" ]]; then
166166
pytest -q --doctest-modules pandas/core/generic.py
167167
RET=$(($RET + $?)) ; echo $MSG "DONE"
168168

169+
MSG='Doctests nanops.py' ; echo $MSG
170+
pytest -q --doctest-modules pandas/core/nanops.py
171+
RET=$(($RET + $?)) ; echo $MSG "DONE"
172+
169173
MSG='Doctests series.py' ; echo $MSG
170174
pytest -q --doctest-modules pandas/core/series.py
171175
RET=$(($RET + $?)) ; echo $MSG "DONE"

pandas/core/nanops.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def nanargmax(
10561056
[ 6., 7., nan],
10571057
[ 9., 10., nan]])
10581058
>>> nanops.nanargmax(arr, axis=1)
1059-
array([2, 2, 1, 1], dtype=int64)
1059+
array([2, 2, 1, 1])
10601060
"""
10611061
values, mask, _, _, _ = _get_values(values, True, fill_value_typ="-inf", mask=mask)
10621062
# error: Need type annotation for 'result'
@@ -1102,7 +1102,7 @@ def nanargmin(
11021102
[nan, 7., 8.],
11031103
[nan, 10., 11.]])
11041104
>>> nanops.nanargmin(arr, axis=1)
1105-
array([0, 0, 1, 1], dtype=int64)
1105+
array([0, 0, 1, 1])
11061106
"""
11071107
values, mask, _, _, _ = _get_values(values, True, fill_value_typ="+inf", mask=mask)
11081108
# error: Need type annotation for 'result'

0 commit comments

Comments
 (0)