Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Separate categorical and numerical columns in dataframe
- X_categorical = X.select_dtypes(exclude=['int', 'float'])
- X_numerical = X.select_dtypes(include=['int', 'float'])
- X_to_predict_categorical = X_to_predict.select_dtypes(exclude=['int', 'float'])
- X_to_predict_numerical = X_to_predict.select_dtypes(include=['int', 'float'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement