Input: two dataframes with the below data: df1: (note EmployeeID is a string of comma separated values)
| Employee Name | EmployeeID |
|---------------|------------|
| John | 2, 22 |
| Kim | 3 |
df2:
| EmployeeID | Hours |
|------------|-------|
| 2 | 8 |
| 3 | 10 |
I want to merge df1 and df2 on df2.EmployeeID in list of ID's in df1.EmployeeID.
Output:
| Employee Name | EmployeeID | Hours |
|---------------|------------|-------|
| John | 2,22 | 8 |
| Kim | 3 | 10 |