Created
October 15, 2019 12:06
-
-
Save lakshay-arora/08a005677a7d75e06cd6d136a6c54eb6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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