I have a dataframe with duplicate values in either list or string format.
df = Name Email years score
john [[email protected],[email protected], [email protected]] 8 good
[devan,smith ,devan] [[email protected]] [8,6,8] good
I want to remove duplicate values within that particular cell, not to compare corresponding to different cells.
df_updated = Name Email years score
john [[email protected],[email protected]] 8 good
[devan,smith] [[email protected]] [8,6] good
df.to_dict('list')and update your question