dataframe convert to categorical 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)