The solution by BENY changes the data type of your column to strings.
I suggest you use instead: df.groupby("first_column").agg(list)
df.groupby("first_column").agg(list)
This will collect your values into a list without changing their type