How to split Pandas column on delimiter and one-hot encode it
Today, I tried a data transformation that seemed so obvious: splitting the string values of a Pandas column on a delimiter and one-hot encode the resulting strings. However, it took me quite some time to figure out how to do it elegantly. Here’s what I wanted to achieve. I had…