Guest User

Untitled

a guest
Mar 19th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. orders = sc.textFile("/public/retail_db/orders")
  2. orderItems = sc.textFile("/public/retail_db/order_items")
  3.  
  4. ordersFiltered = orders. \
  5. filter(lambda o: o.split(",")[3] in ["COMPLETE", "CLOSED"])
Add Comment
Please, Sign In to add comment