# Converting objects values of Stay_In_Current_City into integers and assign the result back to df df['Stay_In_Current_City']=df['Stay_In_Current_City'].astype(int)