I have two dataframes where I want to map multiple columns from the smaller df to the bigger df. The bigger df is 5000 rows and I want to join based on conditions from the smaller tables. For example the bigger dataframe is:
status    type    slot    br
2         1       2       5
2         1       1       5
2         1       2       5
2         1       2       5
2         1       56       26
2         1       76       5
The second dataframe is as follows:
slot    name    from   to     br
1       4PM     16     19     5
2       7PM     19     22     5
3       10PM    10     12     5
76      1PM     13     16     5
56      Lun     12     14     26
So basically I want to map the columns in the second dataframe to the first one based one the two columns "slot" and "br" so that the end result will have a join between the two as follows:
status    type    slot    br    name    from   to
2         1       2       5     7PM     19     22
2         1       1       5     4PM     16     19
2         1       2       5     7PM     19     22
2         1       2       5     7PM     19     22
2         1       56      26    Lun     12     14
2         1       76      5     1PM     13     16
I tried using if statements but gave me an error. Though I think need a more efficient solution using joins or an if should be fine too
 
     
    