I have two tables. First table is df_1, down below:
job_function | job_area | title |
---|---|---|
General Management | Human Resources | manager |
Learning / Training | IT / Computers / Electronics | personnel |
And second table is df_2, down below:
job_function | job_area | id | title |
---|---|---|---|
General Management | Human Resources | 12312312 | manager |
Learning / Training | IT / Computers / Electronics | 12312237 | personnel |
General Management | Human Resources | 12312315 | manager |
Learning / Training | IT / Computers / Electronics | 12312234 | personnel |
I want to merge df_2 with df_1, however as you can see there is one to many relationship. So if joining job_function, job_area, title on df_1, in df_2 you will have many ids which will have the same job_function, job_area, title