Machine Learning, Data Science, Python, Classification.
titles in 4 categories. dataset_title = [i.split(‘,’)[1].split(‘.’)[0].strip() for i in train[‘Name’]] train[‘Title’] = dataset_title train[‘Title’].head() dataset_title = [i.split(‘,’)[1].split(‘.’)[0].strip() for i in test[‘Name’]] test[‘Title’] = dataset_title test[‘Title’].head() # Convert to