How to group dataframe rows into list in pandas groupby
Given a dataframe, I want to groupby the first column and get second column as lists in rows, so that a dataframe like:
Given a dataframe, I want to groupby the first column and get second column as lists in rows, so that a dataframe like: