I have a large dataframe (‘data’) made up of one column. Each row in the column is made of a string and each string is made up of comma separated categories. I wish to one hot encode this data.

For example,

```
data = {"mesh": ["A, B, C", "C,B", ""]}

```

From this I would like to get a dataframe consisting of:

```
index      A       B.     C
0          1       1      1
1          0       1      1
2          0       0      0

```

How can I do this?