Skip to content

Commit 88c180c

Browse files
authored
change cast to dtype="datetime64[ns]"
1 parent 19d2870 commit 88c180c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/arrays/arrow/array.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1484,7 +1484,7 @@ def map(self, mapper, na_action: Literal["ignore"] | None = None):
14841484
if is_numeric_dtype(self.dtype):
14851485
return map_array(self.to_numpy(), mapper, na_action=na_action)
14861486
elif self.dtype == "timestamp[ns][pyarrow]":
1487-
return map_array(self.to_numpy(dtype=object), mapper, na_action=na_action)
1487+
return map_array(self.to_numpy(dtype="datetime64[ns]"), mapper, na_action=na_action)
14881488
else:
14891489
return super().map(mapper, na_action)
14901490

0 commit comments

Comments
 (0)