Skip to content

Commit ae8f9eb

Browse files
committed
pass mask to nanops
1 parent c6e6fb0 commit ae8f9eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/integer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def _reduce(self, name, axis=0, skipna=True, **kwargs):
540540
data[mask] = self._na_value
541541

542542
op = getattr(nanops, 'nan' + name)
543-
result = op(data, axis=axis, skipna=skipna)
543+
result = op(data, axis=axis, skipna=skipna, mask=mask)
544544

545545
# if we have a boolean op, provide coercion back to a bool
546546
# type if possible

0 commit comments

Comments
 (0)