Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# slice the words
my_text_file = my_text_file.map(lambda x : x[:2])
# RDD Object
print(my_text_file)
# Get the RDD Lineage
print(my_text_file.toDebugString())
# Get the first element after all the transformations
print(my_text_file.first())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.