We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 303465a commit a3a8559Copy full SHA for a3a8559
pandas/core/nanops.py
@@ -1261,8 +1261,7 @@ def nanskew(
1261
return np.nan
1262
1263
with np.errstate(invalid="ignore", divide="ignore"):
1264
- total = values.sum(axis, dtype=np.float64)
1265
- mean = total / count
+ mean = values.sum(axis, dtype=np.float64) / count
1266
if axis is not None:
1267
mean = np.expand_dims(mean, axis)
1268
@@ -1351,8 +1350,7 @@ def nankurt(
1351
1350
1352
1353
1354
1355
1356
1357
1358
0 commit comments