I have a DataFrame with two columns store_id
and product_store_id
whose values I need to check against a list of tuples
products_list = [('ebay','123'),('amazon','789'),..]
efficiently, and select the rows containing just the rows of products described in that list?
I've tried products.loc[products[['store_id','product_store_id']].isin(products_list)]
but pandas doesn't like that (ValueError: Cannot index with multidimensional key)
How do i efficiently select all of the houses where store_id
and product_store_id
are in the list?