Convertir variable categórica a variable numérica en Python

## Converting Age to numeric variable

df['Gender']=pd.get_dummies(df['Gender'],drop_first=1)
df.head()
DON-PECH