I have the data frame below and I intend to use it for a ML regression model.
I want to transform features into separate columns on the frame with a 1 if feature exists or 0 if it doesn't. This is to train my model.
example if feature is [cubierta] I want to add a new column named feature_1 with value for the specific row 0 and so on and so forth.
The sequence of items in sequence column is ordered. It is sequential.
Are there existing panda methods that can help?
Sure I can run list(df.features)
on the feature column but I don't know how to proceed then.