Skip to content

Commit 19d2870

Browse files
authored
reverted array.py logic
1 parent 91e6401 commit 19d2870

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1481,10 +1481,10 @@ def to_numpy(
14811481
return result
14821482

14831483
def map(self, mapper, na_action: Literal["ignore"] | None = None):
1484-
if is_numeric_dtype(self.dtype) or self.dtype == "timestamp[ns][pyarrow]":
1484+
if is_numeric_dtype(self.dtype):
14851485
return map_array(self.to_numpy(), mapper, na_action=na_action)
1486-
# elif self.dtype == "timestamp[ns][pyarrow]":
1487-
# return map_array(self.to_numpy(), mapper, na_action=na_action)
1486+
elif self.dtype == "timestamp[ns][pyarrow]":
1487+
return map_array(self.to_numpy(dtype=object), mapper, na_action=na_action)
14881488
else:
14891489
return super().map(mapper, na_action)
14901490

0 commit comments

Comments
 (0)