pandas.Series.explode
- Series.explode(ignore_index=False)
Transform each element of a list-like to a row.
- Parameters:
- ignore_index : bool, default False
If True, the resulting index will be labeled 0, 1, …, n - 1.
- Returns:
- Series
Exploded lists to rows; index will be duplicated for these rows.