Skip to content

Commit 3d12d61

Browse files
author
Marco Gorelli
committed
Black autoformatting
1 parent 038a904 commit 3d12d61

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
@@ -6255,12 +6255,14 @@ def explode(self, column: Union[str, Tuple]) -> "DataFrame":
62556255
)
62566256

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

62626264
if not named_index:
6263-
result.index.names = [None]*self.index.nlevels
6265+
result.index.names = [None] * self.index.nlevels
62646266

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

0 commit comments

Comments
 (0)