Skip to content

Commit c4f0786

Browse files
author
Marco Gorelli
committed
Rewrite how string is formatted (for backwards compatibility)
1 parent a91dc5e commit c4f0786

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6239,7 +6239,7 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
62396239

62406240
if isinstance(self.index, MultiIndex):
62416241
index_names = [
6242-
f"level_{num}" if val is None else val
6242+
"level_{num}".format(num=num) if val is None else val
62436243
for num, val in enumerate(self.index.names)
62446244
]
62456245
else:

0 commit comments

Comments
 (0)