Skip to content

Commit b4b21c7

Browse files
author
Marco Gorelli
committed
Black autoformatting
1 parent 44fb064 commit b4b21c7

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

62506250
if isinstance(self.index, MultiIndex):
6251-
result.index = pandas.MultiIndex.from_frame(result.iloc[:, :self.index.nlevels])
6251+
result.index = pandas.MultiIndex.from_frame(
6252+
result.iloc[:, : self.index.nlevels]
6253+
)
62526254
else:
62536255
result.index = result.iloc[:, 0]
62546256

62556257
if not named_index:
6256-
result.index.names = [None]*self.index.nlevels
6258+
result.index.names = [None] * self.index.nlevels
62576259

62586260
result = result.reindex(columns=self.columns, copy=False)
62596261

0 commit comments

Comments
 (0)