Skip to content

Commit 19b3d57

Browse files
author
Marco Gorelli
committed
Black autoformatting
1 parent 754c48c commit 19b3d57

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/core/frame.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -6254,12 +6254,14 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
62546254
)
62556255

62566256
if isinstance(self.index, MultiIndex):
6257-
result.index = pandas.MultiIndex.from_frame(result.iloc[:, :self.index.nlevels])
6257+
result.index = pandas.MultiIndex.from_frame(
6258+
result.iloc[:, : self.index.nlevels]
6259+
)
62586260
else:
62596261
result.index = result.iloc[:, 0]
62606262

62616263
if not named_index:
6262-
result.index.names = [None]*self.index.nlevels
6264+
result.index.names = [None] * self.index.nlevels
62636265

62646266
result = result.reindex(columns=self.columns, copy=False)
62656267

0 commit comments

Comments
 (0)