I have the following dataframe, and i want to remove all the duplicated values for each list that is into de DataFrame column num_ent.
I would like that the return value will be the column num_ent but without repeated values for each list.
import pandas as pd
data = {'id': [287, 3345, 3967, 7083, 23607], 'num_ent': [[0, 1, 1, 2, 3, 4, 3, 4, 5, 6, 7], [1, 2, 3, 4, 5, 6, 7, 8], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13], [0, 6, 7, 8, 9, 10, 10, 10, 11, 12, 13, 14, 15]]}
df = pd.DataFrame(data=data)
Starting DF
id num_ent
0 287 [0, 1, 1, 2, 3, 4, 3, 4, 5, 6, 7]
1 3345 [1, 2, 3, 4, 5, 6, 7, 8]
2 3967 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
3 7083 [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
4 23607 [0, 6, 7, 8, 9, 10, 10, 10, 11, 12, 13, 14, 15]