Machine Learning, Artificial Intelligence, Data Science, Ai Projects, Calories.
is Gender. Let’s replace male with 0 and female with 1. Handling Categorical Variable df.replace({'Gender':{'male':0, 'female':1}}, inplace=True) df.head() """ OUTPUT: User_ID Gender Age Height Weight Duration Heart_Rate Body_Temp Calories 0 14733363 0 68 190 94 29 105 40.8 231 1 14861698 1 20 166