I have a data frame which has different clinical variables for patients who either had a heart failure or not?
I have a column as gender with values 0 and 1, 0 corresponding to females and 1 corresponding to males?
My question is
How can I get my data frame column from this
gender
1
1
0
1
0
0
to this...
gender
Female
Male
Male
Female
Male
Female
Female
Is there a way to convert the integers 0, 1 to text "Female" and "Male"