I\'m trying to remove duplicate values in my dict but its not working:
samples_antibiotics_with_duplicates = {\'S00541-09\': [\'Streptomycin\', \'Sulfamethox
If you don't care about retaining original order then set(my_list) will remove all duplicates.
set(my_list)
If you want to retain original order then list(OrderedDict.fromkeys(my_list))
list(OrderedDict.fromkeys(my_list))