Separate numerical and categorical variables
I have a dataset (42000, 10) which contains 7 categorical features and 3 numerical. I would like to separate both the numerical and categorical features into 2 different data frames i.e I would like 2 data frames where one contains only numerical data (42000, 3) and the other only categorical data (42000, 7), perform some pre-processing on both of them, and lastly concatenate them into one data frame.
So, my question is how do I separate my initial dataframe into 2 based on numerical and categorical data?
Topic numerical preprocessing pandas categorical-data
Category Data Science