gb = df.groupby('ZZ')
[gb.get_group(x) for x in gb.groups]
More Related Contents:
- Calculate cumulative intraday measures that reset every day in pandas
- How can I pivot a dataframe?
- Get the row(s) which have the max value in groups using groupby
- Get statistics for each group (such as count, mean, etc) using pandas GroupBy?
- How do I create a new column from the output of pandas groupby().sum()?
- Pandas: filling missing values by mean in each group
- Pandas GroupBy.apply method duplicates first group
- Keep other columns when doing groupby
- pandas GroupBy columns with NaN (missing) values
- Count unique values per groups with Pandas [duplicate]
- Multiple aggregations of the same column using pandas GroupBy.agg()
- Pandas groupby mean – into a dataframe?
- Pandas, groupby and count
- Pandas GroupBy and select rows with the minimum value in a specific column
- Pandas Groupby and Sum Only One Column
- Python Pandas Group by date using datetime data
- What is the difference between pandas agg and apply function?
- why does pandas rolling use single dimension ndarray
- Pandas Groupby / List to Multiple Rows
- Pandas – dataframe groupby – how to get sum of multiple columns
- Group dataframe and get sum AND count?
- Pandas number rows within group in increasing order
- Pandas groupby with categories with redundant nan
- Bar graph from dataframe groupby
- Select the max row per group – pandas performance issue
- pandas group by and assign a group id then ungroup
- What is the equivalent of SQL “GROUP BY HAVING” on Pandas?
- Pandas groupby and aggregation output should include all the original columns (including the ones not aggregated on)
- Get the row corresponding to the max in pandas GroupBy [duplicate]
- When is it appropriate to use df.value_counts() vs df.groupby(‘…’).count()?