Skip to content

Commit bb9feb8

Browse files
committed
Fix remaining tests
1 parent 1f6bf0f commit bb9feb8

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/core/arrays/base.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2539,6 +2539,14 @@ def __array_ufunc__(self, ufunc: np.ufunc, method: str, *inputs, **kwargs):
25392539
if result is not NotImplemented:
25402540
return result
25412541

2542+
# TODO: putting this here is hacky as heck
2543+
if self.dtype == "float64[pyarrow]":
2544+
# e.g. test_log_arrow_backed_missing_value
2545+
new_inputs = [
2546+
x if x is not self else x.to_numpy(na_value=np.nan) for x in inputs
2547+
]
2548+
return getattr(ufunc, method)(*new_inputs, **kwargs)
2549+
25422550
return arraylike.default_array_ufunc(self, ufunc, method, *inputs, **kwargs)
25432551

25442552
def map(self, mapper, na_action: Literal["ignore"] | None = None):

0 commit comments

Comments
 (0)