Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -8137,7 +8137,7 @@ def stack(self, level: Level = -1, dropna: bool = True):

def explode(
self,
column: Scalar | tuple | list[Scalar | tuple],
column: IndexLabel,
ignore_index: bool = False,
) -> DataFrame:
"""
Expand All @@ -8147,7 +8147,7 @@ def explode(

Parameters
----------
column : Scalar or tuple or list thereof
column : IndexLabel
Column(s) to explode.
For multiple columns, specify a non-empty list with each element
be str or tuple, and all specified columns their list-like data
Expand Down Expand Up @@ -8229,7 +8229,7 @@ def explode(
if not self.columns.is_unique:
raise ValueError("columns must be unique")

columns: list[Scalar | tuple]
columns: list[Hashable]
if is_scalar(column) or isinstance(column, tuple):
columns = [column]
elif isinstance(column, list) and all(
Expand Down