Pandas groupby to list of dataframes code example Example: group by pandas to list df.groupby('a')['b'].apply(list)