Skip to content

Commit dcb45ed

Browse files
committed
1 parent 74f4b8b commit dcb45ed

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/common.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ 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)) and not isinstance(value, tslibs.Timestamp):
87+
if isinstance(value, (np.datetime64, datetime)) \
88+
and not isinstance(value, tslibs.Timestamp):
8889
value = tslibs.Timestamp(value)
8990
elif isinstance(value, (np.timedelta64, timedelta)):
9091
value = tslibs.Timedelta(value)

0 commit comments

Comments
 (0)