at the moment I am working on some data have a problem with some duplicates. Here my problem in detail:
I have the DF:
Col1 Col2 Col3
'aa1' 'bb1' 'cc1'
'aa2' 'bb2' 'cc2'
'aa1' 'bb3' 'cc3'
I can simply use DF.drop_columns(subset = ['Col1']) and receive
Col1 Col2 Col3
'aa1' 'bb1' 'cc1'
'aa2' 'bb2' 'cc2'
but I am loking for
Col1 Col2 Col3
'aa1' ['bb1','bb3'] ['cc1''cc3']
'aa2' ['bb2'] ['cc2']
where the the data of Col2 and Col3 is stored as lists in the remaining column.
Thanks, F