# Cleaning the Marital status column df['Marital_Status'] = df['Marital_Status'].replace({'Alone':'Single','Widow':'Widowed', 'Together':'Dating'}) df = df[~df['Marital_Status'].isin(['YOLO', 'Absurd'])]
# Cleaning the Marital status column df['Marital_Status'] = df['Marital_Status'].replace({'Alone':'Single','Widow':'Widowed', 'Together':'Dating'}) df = df[~df['Marital_Status'].isin(['YOLO', 'Absurd'])]