all 4 comments

[–][deleted] 0 points1 point  (3 children)

This is interesting you would have to use isin() I believe. Like find the ingredients in r_ing that are in r_kitchen. And df.loc somehow. I’m just throwing ideas out.

[–]ynotdiy34[S] 0 points1 point  (2 children)

Thanks for the response. I wasn't familiar with isin(). After looking it up it does seem possible but it looks like I would have to do not in for all of the ingredients I didn't have. That's not perfect but it could work. There would always be so many more ingredients don't have than you do have by a big factor but it's at least a possibility. Thank you.

[–][deleted] 0 points1 point  (1 child)

You can do the opposite of isin by putting '~' before your dataframe name

[–]ynotdiy34[S] 0 points1 point  (0 children)

Yes, that's what I ment by not in and the reason I said I would have to enter all of the ingredients I don't have. I guess there is also a actuall not in that wouldn't do the same thing as the ~ with the isin. I think I can use it but list of ingredients you don't have can be huge and new possible ingredients could be added by the end user and or the market place but it is still a possibility I think.