I'm trying to apply a set()
function to multiple objects of lists. Below is the example of said lists:
test_lst1 = ['a','b','c','d','e','b','e']
test_lst2 = ['z','x','y','z']
I want to do something along the line of:
for x in range(2):
test_lst{x} = set(test_lst{x})
Any idea how I can do that?
Edit
I decided to transform the data frame into a dictionary and assign each column while taking the duplicates through a for-loop.
test_dict = {}
for col in test_df :
test_dict[col] = test_df[col].unique()