Questions relating to the explode method of pandas DataFrames or Series. Be sure to also include the base tag [pandas].
The explode method was added in pandas 0.25.0 (July 18, 2019).
explode transforms columns of list-like values so that each element is on its own row. By default, index values will be duplicated for these rows. Moreover, for the case of DataFrame.explode, the values in the columns that are not to be exploded will also be duplicated.
Useful Canonicals:
- How to unnest (explode) a column in a pandas DataFrame, into multiple rows
- Efficient way to unnest (explode) multiple list columns in a pandas DataFrame
The Documentation:
 
     
     
     
     
     
     
     
     
     
     
     
     
     
    