thanks in advance for help. I have two dataframes as given below. I need to create column category in sold frame based on information in size frame. It should check siz of product within Min and Max sizes for this product and return group. Is it possible to do it in pandas? not SQL. I think merge and join method will not work here.
size=pd.DataFrame({"Min Size":[30,41,40],
"Max Size":[40, 60, 50],
"Category":['small', 'big', "medium"],
"Product":['Apple', 'Apple', "Peach"]})
sold=pd.DataFrame({"Purchase_date":["20/01/2020", "18/02/2020", "01/06/2020"],
"Size":[35, 45, 42],
"Category":["small","big","medium"],
"Product":['Apple', 'Peach', "Apple"]})