Change classify response into '0' and '1'

PHOTO EMBED

Sun Nov 14 2021 22:23:48 GMT+0000 (Coordinated Universal Time)

Saved by @Bigby_Wolf #data

df['Purchase'] = df['Purchase'].apply(lambda x: 1 if x=='Yes' else 0)
content_copyCOPY