I'm currently working on Kaggle's Titanic Survival Prediction. There's a problem when I wanted to encode the 'Sex' feature to 0 or 1. I've followed the official documentation on Pandas but it's does not help.
Edit: I've noticed that I wrote 'Male' instead of 'male' but still not working after i change to 'male'
Much Appreciated!