convert to categorical variable pandas code example
Example: panda categorical data into numerica
sex = train_dataset['Sex'].replace(['female','male'],[0,1])
print(sex)
sex = train_dataset['Sex'].replace(['female','male'],[0,1])
print(sex)