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