Skip to content

Commit 74f4b8b

Browse files
committed
1 parent 5db56df commit 74f4b8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def maybe_box(indexer, values, obj, key):
8484
def maybe_box_datetimelike(value):
8585
# turn a datetime like into a Timestamp/timedelta as needed
8686

87-
if isinstance(value, (np.datetime64, datetime)):
87+
if isinstance(value, (np.datetime64, datetime)) and not isinstance(value, tslibs.Timestamp):
8888
value = tslibs.Timestamp(value)
8989
elif isinstance(value, (np.timedelta64, timedelta)):
9090
value = tslibs.Timedelta(value)

0 commit comments

Comments
 (0)