Answers for "make dataframe categorical numeric python"

1

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 "make dataframe categorical numeric python"

Browse Popular Code Answers by Language