How can I get 'set' data from DataFrame elements?
For example, if I have a data as
df = DataFrame([['a','b','z'], ['a', 'c'], ['d']]) I would like to get
{'a', 'b', 'c', 'd', 'z'} (type: set)
If I use for sentence, I can code it. However, if there is another way to calculate with pandas, I would like to use it.