Comment convertir le genre en variable numérique

## Converting Gender to numeric variable(by using target ordinary encodiing)

df['Gender']=df['Gender'].map({'F':0, 'M':1})
df.head()
DON-PECH