I would like to do an analisis about the products and to know if after the sell of the product, the costumer go back and buy again the same or another product/s. Please find bellow an example, the result I would like to have and the fields I have in order to achieve my objetive: enter image description here
Some rows of my table: enter image description here
id customer_id order_number created_at product_name quantity price total_order_price product_category product_subcategory product_grouped orders_count has_user_account order_occurrence recurrent_customer customer_creation_date
4546 23655 5657 2022-01-02 13:15:23 UTC water . 1 2€ 2€ drink cold drink . waters 1 1 1 . 0 2022-01-02 13:15:23 UTC
Some clarifications: For coke, 2/3 of repetition rate means: 2 out of 3 customers bought cokes and then they bought again. For Orange juice, only one customer made another purchase after that.