Skip to content

Commit 63fd66d

Browse files
committed
Update from black auot-formatter
`black pandas` altered the code formatting
1 parent dc94c13 commit 63fd66d

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

pandas/core/tools/datetimes.py

+4-12
Original file line numberDiff line numberDiff line change
@@ -475,8 +475,7 @@ def _adjust_to_origin(arg, origin, unit):
475475
j_min = Timestamp.min.to_julian_date() - j0
476476
if np.any(arg > j_max) or np.any(arg < j_min):
477477
raise tslibs.OutOfBoundsDatetime(
478-
f"{original} is Out of Bounds for "
479-
"origin='julian'"
478+
f"{original} is Out of Bounds for " "origin='julian'"
480479
)
481480
else:
482481
# arg must be numeric
@@ -493,14 +492,9 @@ def _adjust_to_origin(arg, origin, unit):
493492
try:
494493
offset = Timestamp(origin)
495494
except tslibs.OutOfBoundsDatetime:
496-
raise tslibs.OutOfBoundsDatetime(
497-
f"origin {origin} is Out of Bounds"
498-
)
495+
raise tslibs.OutOfBoundsDatetime(f"origin {origin} is Out of Bounds")
499496
except ValueError:
500-
raise ValueError(
501-
f"origin {origin} cannot be converted "
502-
"to a Timestamp"
503-
)
497+
raise ValueError(f"origin {origin} cannot be converted " "to a Timestamp")
504498

505499
if offset.tz is not None:
506500
raise ValueError(f"origin offset {offset} must be tz-naive")
@@ -1009,9 +1003,7 @@ def _convert_listlike(arg, format):
10091003
if time_object is not None:
10101004
times.append(time_object)
10111005
elif errors == "raise":
1012-
raise ValueError(
1013-
f"Cannot convert arg {arg} to a time"
1014-
)
1006+
raise ValueError(f"Cannot convert arg {arg} to a time")
10151007
elif errors == "ignore":
10161008
return arg
10171009
else:

0 commit comments

Comments
 (0)