Skip to content

Commit 556adb2

Browse files
author
Marco Gorelli
committed
Rewrite how string is formatted (for backwards compatibility)
1 parent 4ce3718 commit 556adb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6246,7 +6246,7 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
62466246

62476247
if isinstance(self.index, MultiIndex):
62486248
index_names = [
6249-
f"level_{num}" if val is None else val
6249+
"level_{num}".format(num=num) if val is None else val
62506250
for num, val in enumerate(self.index.names)
62516251
]
62526252
else:

0 commit comments

Comments
 (0)