Answers for "categorical data into numerical data pandas ohe"

0

how to store categorical variables in separate dataframe

df.loc[:,df.dtypes==np.object]
Posted by: Guest on March-22-2021
0

how to convert categorical data to numerical data in python

obj_df["body_style"] = obj_df["body_style"].astype('category')
obj_df.dtypes
Posted by: Guest on May-26-2021

Code answers related to "categorical data into numerical data pandas ohe"

Python Answers by Framework

Browse Popular Code Answers by Language