acidplyr.unnest2

acidplyr.unnest2(df: DataFrame, col: str) DataFrame

Explode a list-column into long format.

Parameters:
  • df (pd.DataFrame) – Input DataFrame.

  • col (str) – Name of the column containing lists to explode.

Returns:

Long-form DataFrame with one row per element.

Return type:

pd.DataFrame