I am trying to deactivate certain products from inventory if all their sizes have zero stock, from a csv using pandas. Psuedo - group all the products by "desc" and if all "instock" equals zero then return true to "inactive"
I have tried using groupby function with pandas, but can't get my head around how it works.
Here is the csv, and me trying to explain what I mean ...
