Skip to content

Commit cbc5d01

Browse files
committed
don't use f-string
1 parent d0a6391 commit cbc5d01

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/io/excel/_openpyxl.py

+5-4
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,11 @@ def _to_excel_range(cls, startrow, startcol, endrow, endcol):
394394
"""Convert (zero based) numeric coordinates to excel range."""
395395
from openpyxl.utils.cell import get_column_letter
396396

397-
return (
398-
f"{get_column_letter(startcol+1)}{startrow+1}"
399-
":"
400-
f"{get_column_letter(endcol+1)}{endrow+1}"
397+
return "%s%d:%s%d" % (
398+
get_column_letter(startcol + 1),
399+
startrow + 1,
400+
get_column_letter(endcol + 1),
401+
endrow + 1,
401402
)
402403

403404
def write_cells(

pandas/io/excel/_xlsxwriter.py

-1
Original file line numberDiff line numberDiff line change
@@ -283,4 +283,3 @@ def write_table(
283283
options = {"columns": columns, "name": table}
284284

285285
wks.add_table(startrow, startcol, startrow + n_rows, startcol + n_cols, options)
286-

0 commit comments

Comments
 (0)