Cara mengubah jenis kelamin menjadi variabel numerik

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

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