I have a dataframe that looks like below:
| Name | String Names |
|---|---|
| First | ['A','A','B','C'] |
| Second | ['AA','BB'] |
I want the output to be like
| Name | String Names |
|---|---|
| First | 'A','B','C' |
| Second | 'AA','BB' |
I need the list to be converted to str . I've done that using the below code
df['String Names'] = df['String Names'].str.join(',')
But I'm unable to get only the unique values.
Any suggestion how I can do it in python?