Pandas: Replacing column values in dataframe,"w['female'] = w['female'].map({'female': 1, 'male': 0})"