Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

panda categorical data into numerica

sex = train_dataset['Sex'].replace(['female','male'],[0,1])
print(sex)
 
PREVIOUS NEXT
Tagged: #panda #categorical #data #numerica
ADD COMMENT
Topic
Name
4+1 =