Cleaning the Marital status column

PHOTO EMBED

Tue May 21 2024 08:48:22 GMT+0000 (Coordinated Universal Time)

Saved by @Uncoverit #python

# 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'])]
content_copyCOPY