Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ivan-vasilev committed Dec 28, 2019
1 parent 5db56df commit 74f4b8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def maybe_box(indexer, values, obj, key):
def maybe_box_datetimelike(value):
# turn a datetime like into a Timestamp/timedelta as needed

if isinstance(value, (np.datetime64, datetime)):
if isinstance(value, (np.datetime64, datetime)) and not isinstance(value, tslibs.Timestamp):
value = tslibs.Timestamp(value)
elif isinstance(value, (np.timedelta64, timedelta)):
value = tslibs.Timedelta(value)
Expand Down

0 comments on commit 74f4b8b

Please sign in to comment.