Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG/REF: ArrowExtensionArray non-nanosecond units #53171

Merged
merged 13 commits into from
May 16, 2023
Prev Previous commit
Next Next commit
fixes
  • Loading branch information
lukemanley committed May 10, 2023
commit 299b20d9300ad15c87d54434a601f17b646052b8
4 changes: 3 additions & 1 deletion pandas/core/arrays/arrow/array.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ def _cmp_method(self, other, op):
raise NotImplementedError(
f"{op.__name__} not implemented for {type(other)}"
)
return type(self)(result)
return ArrowExtensionArray(result)

def _evaluate_op_method(self, other, op, arrow_funcs):
pa_type = self._pa_array.type
Expand Down Expand Up @@ -1611,6 +1611,8 @@ def _box_pa_array(
pa_array = value
elif isinstance(value, BaseMaskedArray):
# GH 52625
if copy:
value = value.copy()
pa_array = value.__arrow_array__()
else:
if (
Expand Down