i have a orders dataframe:
| items | chat_id |
|---|---|
| curd,vada,rice | 74374374h4473 |
| idly,sambar | 7949759459h34 |
I have another unique menu items data frame with its own particular id:
| id | items |
|---|---|
| 1 | idly |
| 2 | vada |
| 3 | rice |
| 4 | curd |
| 5 | sambar |
now I want to match the elements and return its id's by printing its chat_id in the orders data frame
| chat_id | id |
|---|---|
| 74374374h4473 | 4 |
| 74374374h4473 | 2 |
| 74374374h4473 | 3 |
| 7949759459h34 | 1 |
| 7949759459h34 | 5 |