Replace Male:0 Female:1 in DataFrame (sex)

PHOTO EMBED

Mon Nov 21 2022 23:06:21 GMT+0000 (Coordinated Universal Time)

Saved by @janduplessis883 #pandas

# creating dummies for gender
data['Gender'] = data['Gender'].map({'Male':0, 'Female':1})
content_copyCOPY