I have uploaded a dataset in Python. I need to do two things. One, change some of my variables, like ID, Gender (which is input as 0 and 1) from float64. I also want to change the input under gender from 0 to male and 1 to female.
I am not sure how to go about the first questions, but the second, I figure I would do a combination of a for loop and if then statements, but I am really confused. Any suggestions?