Imagine my dataframe is this:
+ +
Index | A | B
+--------------|---------|----------+
| |
1 |Y,Z | nan
| |
2 |Y,Z,X | 2
| |
3 |Z | 7
| |
4 |nan | 1
+ +
This dataframe is 10,000 lines long and contain many variations in Column A.
From Column A, how would I get the all unique returns by ignoring Commas (,)?
From the 3 line data frame above, it would be:
Z = 3
Y = 2
X = 1
I'm not looking for:
Y,Z = 1
Y,Z,X = 1
X = 1
Thank you!