Skip to content

Instantly share code, notes, and snippets.

@dvainrub
Created April 11, 2018 12:48
Show Gist options
  • Save dvainrub/4eb803496d6f24dc589ee037eb95f23f to your computer and use it in GitHub Desktop.
Save dvainrub/4eb803496d6f24dc589ee037eb95f23f to your computer and use it in GitHub Desktop.
cmd> pyspark
>>> nums = sc.parallelize([1,2,3,4])
>>> nums.map(lambda x: x*x).collect()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment