Answers for "Converting categorical variable to numeric variable in python"

0

Converting categorical variable to numeric variable in python

## Converting Age to numeric variable

df['Gender']=pd.get_dummies(df['Gender'],drop_first=1)
df.head()
Posted by: Guest on March-08-2022

Code answers related to "Converting categorical variable to numeric variable in python"

Python Answers by Framework

Browse Popular Code Answers by Language