We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 014d8ea commit 24643eeCopy full SHA for 24643ee
pandas/_libs/tslibs/timedeltas.pyx
@@ -584,7 +584,7 @@ cdef inline int64_t parse_iso_format_string(str ts) except? -1:
584
bint have_dot = 0, have_value = 0, neg = 0
585
list number = [], unit = []
586
587
- err_msg = "Invalid ISO 8601 Duration format - {}".format(ts)
+ err_msg = "Invalid ISO 8601 Duration format - {ts}"
588
589
for c in ts:
590
# number (ascii codes)
pandas/_libs/tslibs/timestamps.pyx
@@ -194,7 +194,7 @@ def integer_op_not_supported(obj):
194
"Addition/subtraction of integers and integer-arrays with {cls} is "
195
"no longer supported. Instead of adding/subtracting `n`, "
196
"use `n * obj.freq`"
197
- ).format(cls=cls)
+ )
198
return TypeError(int_addsub_msg)
199
200
0 commit comments