Details about data
Order Id: order id is generated when a customer orders anything product is the items that she is ordering
I want a count matrix wherein how many orders lemon and apple combination was, their input data is
I tried groupby
.groupby(\['product', 'order_id'\]).size().unstack(fill_value=0))
I am expecting the results to be