How to convert a set of categories into a DataFrame?
For example:
A = [[\'a\', \'c\'], [\'a\', \'b\'], [\'b\', \'d\'], [\'e\']]
To: