Skip to content

Commit 1aab7ca

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

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

pandas/io/excel/_openpyxl.py

Lines changed: 5 additions & 4 deletions
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(

0 commit comments

Comments
 (0)