1.Input: I have a dictionary list
{'1': [['a','b','c'],['f1','f1','f2']]}
2.Expected Result:
{'1': [['a','b','c'],['f1','f2']]}
- I want the repeated values of nested dictionary be removed and only unique values be kept in the dictionary.
4.Code I tried:
df_t = pd.DataFrame(df)
df_d= df_t[(x.values())].drop_duplicates()
df_d
Error: KeyError: TypeError: unhashable type: 'list'