BUG: IntNA division can alter array inplace #27829
Labels
Bug
ExtensionArray
Extending pandas with custom dtypes or arrays.
Numeric Operations
Arithmetic, Comparison, and Logical operations
Milestone
IntegerArray._maybe_mask_result
starts with:but in many cases,
mask
will beself._mask
, so it gets altered inplace. The intuitive solution is to add a check formask 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
The text was updated successfully, but these errors were encountered: