Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Use drop_first = True to avoid collinearity
- pd.get_dummies(df, drop_first = True)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement