polars.internals.frame.GroupBy.groups

GroupBy.groups() polars.internals.frame.DF

Return a DataFrame with:

  • the groupby keys

  • the group indexes aggregated as lists