-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Closed
Labels
BugExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Numeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations
Milestone
Description
IntegerArray._maybe_mask_result
starts with:
if is_float_dtype(result):
mask |= (result == np.inf) | (result == -np.inf)
but in many cases, mask
will be self._mask
, so it gets altered inplace. The intuitive solution is to add a check for mask is self._mask
and make a copy, but that turns out to break 32 tests, so somewhere we're relying on this incorrect behavior.
cc @jreback
Metadata
Metadata
Assignees
Labels
BugExtensionArrayExtending pandas with custom dtypes or arrays.Extending pandas with custom dtypes or arrays.Numeric OperationsArithmetic, Comparison, and Logical operationsArithmetic, Comparison, and Logical operations