Validate MyReduce Function
Validate myReduce Function¶ Let us validate myReduce Function. Compute order revenue for a given order id using order_items. We will use myFilter to filter for the order items for the given order id. Use myMap to extract order_item_subtotal. We will also convert data type of order_item_subtotal to float. We can now compute order_revenue using myReduce …