I am currently using two data frames and I wish to compare two columns across them, and then create an output variable. However, I want to store the output in the form of a pandas dataframe, or atleast in a json output, which I can then read back to python. My approach is currently using a python dataframe agent, if there's an alternative, would appreciate it.
My datasets look like this
Table 1
| ID | Food items |
| --- | -----------|
| 1 | Apple |
| 2 | Celery |
| 3 | Chicken |
Table 2
| ID | Categories |
| ----| -----------|
| 1 | Vegetable |
| 2 |Fruit |
| 3 |Meat |
I would like a mapping of Apple to Fruit, Celery to Vegetable etc in a table format.