Skip to content

Commit 612ec5f

Browse files
author
Sebastian Goldmann
committed
adjusted kurt for series to align behaviour
1 parent 99a602f commit 612ec5f

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
@@ -1400,7 +1400,7 @@ def nankurt(
14001400
if count < 4:
14011401
return np.nan
14021402
if denominator == 0:
1403-
return values.dtype.type(0)
1403+
return np.nan
14041404

14051405
with np.errstate(invalid="ignore", divide="ignore"):
14061406
result = numerator / denominator - adj

0 commit comments

Comments
 (0)