If I have the following table:
How can I merge two or more rows based on a specific column? In this case, it is column Col_4.
Thanks
If I have the following table:
How can I merge two or more rows based on a specific column? In this case, it is column Col_4.
Thanks
A simple groupby with agg will do the trick
df.groupby(['Col_1','Col_2','Col_3'],as_index = False).agg(list)