Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created October 14, 2019 07:18
Show Gist options
  • Save lakshay-arora/0802e3966ef220c3ded66c1de036f4a9 to your computer and use it in GitHub Desktop.
Save lakshay-arora/0802e3966ef220c3ded66c1de036f4a9 to your computer and use it in GitHub Desktop.
# add value 4 to each number
rdd_1 = rdd_0.map(lambda x : x+4)
# RDD object
print(rdd_1)
# get the RDD Lineage
print(rdd_1.toDebugString())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment