Skip to content

Commit 494c715

Browse files
sardonickAlexKirko
authored andcommitted
CLN: changed .format to fstring in pandas/io/formats/csvs.py (pandas-dev#30425)
1 parent a3ecaaf commit 494c715

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

pandas/io/formats/csvs.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,7 @@ def _save_header(self):
238238
if has_aliases:
239239
if len(header) != len(cols):
240240
raise ValueError(
241-
(
242-
"Writing {ncols} cols but got {nalias} "
243-
"aliases".format(ncols=len(cols), nalias=len(header))
244-
)
241+
f"Writing {len(cols)} cols but got {len(header)} aliases"
245242
)
246243
else:
247244
write_cols = header

0 commit comments

Comments
 (0)