pandas.Series.explode
pandas 3.1.1 · Series and accessors · method
Expand list-like cells into rows, repeating original row labels as needed.
Call syntax
Series.explode(ignore_index=False)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
ignore_index |
Optional Positional or keyword Default False |
bool Give the resulting axis new integer labels where supported. |
Returns
Series