Skip to content

Commit 9e121fe

Browse files
author
Javier Sorribes Camargo
committed
BUG: Disable bottleneck for nanops to avoid overflow
1 parent af7aebb commit 9e121fe

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/core/nanops.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ def _bn_ok_dtype(dt, name):
129129
# bottleneck does not properly upcast during the sum
130130
# so can overflow
131131
if name == 'nansum':
132-
if dt.itemsize < 8:
133-
return False
134-
elif os.name == 'nt': # bottleneck has overflow issue in Windows
135-
return False
132+
return False
136133

137134
return True
138135
return False

0 commit comments

Comments
 (0)