Skip to content

Commit a5e4680

Browse files
author
Sebastian Goldmann
committed
adjusted for other condition as well
1 parent 612ec5f commit a5e4680

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/nanops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1410,7 +1410,7 @@ def nankurt(
14101410
result = result.astype(dtype, copy=False)
14111411

14121412
if isinstance(result, np.ndarray):
1413-
result = np.where(denominator == 0, 0, result)
1413+
result = np.where(denominator == 0, np.nan, result)
14141414
result[count < 4] = np.nan
14151415

14161416
return result

0 commit comments

Comments
 (0)