I have three columns in a dataframe. I would like to make the second and third column have sets as opposed to lists. Using df['column_name_2 and column_name_3'].apply(set) results in an error because, as I understand it, this function will only take 1 argument. However splitting them into two separate functions, completely eliminates column three.
This is what I have:
column_1 column_2 column_3
1 [lk, 18m] [kjaf]
This is what I want:
column_1 column_2 column_3
1 {lk, 18m} {kjaf}