I have a column (in a dataframe) that contains multiple city names and I need to know the unique name of cities.
city
0 Dallas,Columbus,Portland,LasVegas
1 Columbus,Dallas,LasVegas
2 Dallas
3 Portland,Columbus,LosAngeles
4 Columbus
I want to obtain a list of cities like that: Dallas,Columbus,Portland,LasVegas,LosAngeles.
I tried to use countVectorize function and pandas unique() method but I am not sure how to do that.