1

I have the following dictionary:

dict_sex = {'Tom': 'Male', 'Hans': 'Male','Christina':'Female'}

And I would like to update the appropriate values for sex in the pandas dataframe below

Name      Sex
Tom
Hans
Christina

What is the best way to accomplish this?

MathiasRa
  • 825
  • 2
  • 12
  • 24

0 Answers0