I have multiple different data sets, and I am trying to use two at a time for calculations. For instance: I have a dataset with approximately 90,000 rows, each row has columns: policy , age, gender, loyalty (years with company), smoker, zip code, accidents, premium. I have another dataset with 6 rows. each row has columns: accidents, Charge. What I am trying to do is take the accidents from the first dataset for each row and reference that number of accidents with the same number in the second dataset under the accidents column, and then use what is in the charge column for that many accidents (by row) as a multiplier. I have spent a few hours trying different things and haven't really come up with any solutions. EDIT: I have uploaded a visual I quickly made to make it easier to understand what I am trying to accomplish
... View more