Guest User

Untitled

a guest
Mar 19th, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. ordersMap = ordersFiltered. \
  2. map(lambda o: (int(o.split(",")[0]), o.split(",")[1]))
  3. orderItemsMap = orderItems. \
  4. map(lambda oi:
  5. (int(oi.split(",")[1]), (int(oi.split(",")[2]), float(oi.split(",")[4])))
  6. )
  7.  
  8. ordersJoin = ordersMap.join(orderItemsMap)
  9. ordersJoinMap = ordersJoin. \
  10. map(lambda o: ((o[1][0], o[1][1][0]), o[1][1][1]))
Add Comment
Please, Sign In to add comment