Filtering a python DataFrame based on whether two column values in each row are found within a dictionary
I have a df that contains a subject ID and an item ID. An item ID may appear multiple times for one subject ID and multiple item IDs may be assigned to one subject ID.