I want to create a column with values 1 for female, 0 for male based on the gender column in Pandas.
Is using a for loop efficient?
I want to create a column with values 1 for female, 0 for male based on the gender column in Pandas.
Is using a for loop efficient?