Make Me Engineer
You can try :
df = pd.get_dummies(df, columns=['type'])
Comment
Save my name, email, and website in this browser for the next time I comment.