I try to aggregate based on one column "col1" like this and keep same value from other columns:
df_input
col1 col2 col3 col4
0 ID1 DE 69 min-8
1 ID1 DZ 69 min-8
2 ID3 DA 54 min-15
3 ID3 AC 54 min-15
4 ID3 RC 54 min-15
5 ID8 UC 2 min-40
6 ID8 TC 2 min-40
7 ID8 VC 2 min-40
8 ID8 WC 2 min-40
9 ID7 XC 4 min-7
df_output
col1 col2 col3 col4
0 ID1 DE,DZ 69 min-8
1 ID3 DA,AC,RC 54 min-15
2 ID8 UC,TC,VC,WC 2 min-40
3 ID7 XC 4 min-7