Skip to content

Commit c25c928

Browse files
committed
BUG: catch any/all case that fails in NumPy > 1.6 with stricter casting rules
1 parent 67ccb03 commit c25c928

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/core/frame.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -4585,9 +4585,7 @@ def _reduce(self, op, axis=0, skipna=True, numeric_only=None,
45854585
result = result.astype(np.float64)
45864586
elif filter_type == 'bool' and notnull(result).all():
45874587
result = result.astype(np.bool_)
4588-
else:
4589-
raise NotImplementedError
4590-
4588+
# otherwise, accept it
45914589
except (ValueError, TypeError):
45924590
pass
45934591

0 commit comments

Comments
 (0)