Answers for "create new categorical variable numeric data frames in python"

0

how to store categorical variables in separate dataframe

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

panda categorical data into numerica

sex = train_dataset['Sex'].replace(['female','male'],[0,1])
print(sex)
Posted by: Guest on March-04-2021

Code answers related to "create new categorical variable numeric data frames in python"

Python Answers by Framework

Browse Popular Code Answers by Language