I have the input file which is something like:
I want to remove the duplicates from request_id field but need the corresponding e_id for it as comma separated values.
For Ex:
My Output should look like:
I tried to bring this output using dataframe
pd.DataFrame.drop_duplicates(subset=['Request_id'], keep='last')
But it didn't work as expected. Any suggestions to bring the desired output would be appreciated. Thanks in advance :)