So, I have dataframe like this, imported from csv file
| name | math | physic |
|---|---|---|
| James | 80 | 90 |
| Tom | 60 | 70 |
| Jerry | 90 | 60 |
and I have a dictionary
data = {'math': 60, 'physic': 70}
I want to check for every value of data dict and compare it with data frame. If the matching value of math and physic it should return the name. In this case Tom.
How can I do this? Any suggestion?