Sai

Get Revenue For A Given Product Id

Get Revenue for a given product_id¶ Use order items data set and compute total revenue generated for a given product_id. Filter for given product_id. Extract order_item_subtotal for each item. Aggregate to get the revenue for a given product id. In [1]: %run 02_preparing_data_sets.ipynb In [2]: order_items[:10] Out[2]: [‘1,1,957,1,299.98,299.98’, ‘2,2,1073,1,199.99,199.99’, ‘3,2,502,5,250.0,50.0’, ‘4,2,403,1,129.99,129.99’, ‘5,4,897,2,49.98,24.99’, ‘6,4,365,5,299.95,59.99’, ‘7,4,502,3,150.0,50.0’, ‘8,4,1014,4,199.92,49.98’, ‘9,5,957,1,299.98,299.98’, ‘10,5,365,5,299.95,59.99’] …

Get Revenue For A Given Product Id Read More »