I have a pandas dataframe (N = 1485) that looks like this:
ID Intervention
1 Blood Draw, Flushed, Locked
1 Blood Draw, Port De-Accessed, Heparin-Locked, Tubing Changed
1 Blood Draw, Flushed
2 Blood return Verified, Flushed
2 Cap Changed
3 Port De-Accessed
I want to be able to dummy code out each of the string before every comma so it looks similar to this:
ID Blood Draw Flushed Locked ....
1 Yes Yes Yes
1 Yes No No
...
Thanks!