Convert categorical data to neumeric data 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)