This is regarding accessing a tuple.
I have noticed that in the videos some places we are accessing a value in a tuple using split function and this looks very clear to me.example is shown below- #Customer id with max revenue
val ordersPerDayPerCustomer = ordersJoinOrderItems.map(rec => ((rec._2._2.split(",")(1), rec._2._2.split(",")(2)), rec._2._1.split(",")(4).toFloat))
However In some places we are not using the split function to access a value in tuple.
val revenuePerDayPerCustomerMap = revenuePerDayPerCustomer.map(rec => (rec._1._1, (rec._1._2, rec._2)))