0

I am trying to dummy all categorical data at once I don't know it is possible or not if there's a way can you help me

Here's what I have tried

df['Gender'],df['Country'],df['State'],df['Mortgage'] = pd.get_dummies(df['Gender', 'Country', 'State', 'Mortgage'])

well, I know this will give an error but is there something that can do this job!!

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Darkstar Dream
  • 1,649
  • 1
  • 12
  • 23

0 Answers0