Skip to content

Instantly share code, notes, and snippets.

@hsiaoer
Created April 10, 2018 15:27
Show Gist options
  • Save hsiaoer/f539145c9c3b759f34cd278165984091 to your computer and use it in GitHub Desktop.
Save hsiaoer/f539145c9c3b759f34cd278165984091 to your computer and use it in GitHub Desktop.
mwitiderrick-intro-to-keras-2
feats = [‘policy_state’,’insured_sex’,’insured_education_level’,’insured_occupation’,’insured_hobbies’,’insured_relationship’,’collision_type’,’incident_severity’,’authorities_contacted’,’incident_state’,’incident_city’,’incident_location’,’property_damage’,’police_report_available’,’auto_make’,’auto_model’,’fraud_reported’,’incident_type’]
df_final = pd.get_dummies(df,columns=feats,drop_first=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment