Skip to content

Commit c329c3c

Browse files
committed
COMPAT: 0-d ndarray compat on windows
1 parent 91b6848 commit c329c3c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/nanops.py

+2
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,8 @@ def _get_counts(mask, axis, dtype=float):
602602
return dtype.type(mask.size - mask.sum())
603603

604604
count = mask.shape[axis] - mask.sum(axis)
605+
if np.isscalar(count):
606+
return dtype.type(count)
605607
try:
606608
return count.astype(dtype)
607609
except AttributeError:

0 commit comments

Comments
 (0)