Skip to content

Commit 7839632

Browse files
committed
COMPAT: windows dtype fix in for Panel.count
1 parent 0d2966f commit 7839632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/nanops.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def _bn_ok_dtype(dt, name):
9999
# bottleneck does not properly upcast during the sum
100100
# so can overflow
101101
if name == 'nansum':
102-
if dt != np.bool_ and dt.itemsize < 8:
102+
if dt.itemsize < 8:
103103
return False
104104

105105
return True

0 commit comments

Comments
 (0)