0

I have a dataframe where i need to change row values if it is present in a dictionary like this:

dict = {"A":Apple:"B":Ball,"C":Cat}

        c1          c2      c3
0       A          Tree     GH
1       B          Train    GC
2       C          Yarn     GR

I want the column c1 values to be changed from the dict if it is present.

Jonreyan
  • 131
  • 2
  • 3
  • 14

0 Answers0