how encode column pandas has numerical and categorical 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)