## Converting Gender to numeric variable(by using target ordinary encodiing) df['Gender']=df['Gender'].map({'F':0, 'M':1}) df.head()