Skip to content

Commit 1856cef

Browse files
committed
remove todo note and add new todo note
1 parent 418c6f1 commit 1856cef

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pandas/core/arrays/datetimelike.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -752,15 +752,13 @@ def _unbox(self, other) -> np.int64 | np.datetime64 | np.timedelta64 | np.ndarra
752752

753753
@ravel_compat
754754
def map(self, mapper, na_action=None):
755-
# TODO(GH-23179): Add ExtensionArray.map
756-
# Need to figure out if we want ExtensionArray.map first.
757-
# If so, then we can refactor IndexOpsMixin._map_values to
758-
# a standalone function and call from here..
759-
# Else, just rewrite _map_infer_values to do the right thing.
760755
from pandas import Index
761756

762757
idx = Index(self)
763758

759+
# TODO: GH51936: the code inside the try clause should either be removed
760+
# (considereded a bug) or be deprecated.
761+
# map should work elementwise, not array-wise.
764762
try:
765763
if na_action is not None:
766764
raise ValueError("calling mapper directly only na_action=None")

0 commit comments

Comments
 (0)