python One hot encoding for comma separated values : <p>my dataset looks like this</p>

<pre><code>Type   Date         Issues
M      1 Jan 2019   A12,B56,C78
K      2 May 2019   B56, D90
M      5 Feb 2019   A12,K31 
K      3 Jan 2019   A12,B56,K31,F66
.
.
.
</code></pre>

<p>I want to do one hot encoding for the issues column</p>

<p>so my dataset looks like this</p>

<pre><code>Type   Date         A12 B56 C78 D90 E88 K31 F66
M      1 Jan 2019   1   1   1   0   0   0   0
K      2 May 2019   0   1   0   1   0   0   0
M      5 Feb 2019   1   0   0   0   0   1   0
K      3 Jan 2019   1   1   0   0   0   1   1
.
.
.
</code></pre>

<p>How to do that in Python</p>
