Machine Learning, Data Science, Python, Classification.
categorical values Title train[“Title”] = train[“Title”].replace([‘Lady’, ‘the Countess’,’Countess’,’Capt’, ‘Col’,’Don’, ‘Dr’, ‘Major’, ‘Rev’, ‘Sir’, ‘Jonkheer’, ‘Dona’], ‘Rare’) train[“Title”] = train[“Title”].map({“Master”:’0', “Miss”:’1', “Ms”:’1', “Mme”:’1', “Mlle”:’1', “Mrs”:’1', “Mr”:’2',