Skip to content

Instantly share code, notes, and snippets.

@lakshay-arora
Created October 26, 2020 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lakshay-arora/9563dc134b2916db16fc431556d795fb to your computer and use it in GitHub Desktop.
Save lakshay-arora/9563dc134b2916db16fc431556d795fb to your computer and use it in GitHub Desktop.
spark.createDataFrame(
[
(1, 'Lakshay'), # create your data here, make sure to be consistent in the types.
(2, 'Aniruddha'),
.
.
.
.
(100, 'Siddhart')
],
['id', 'Name'] # add your columns label here
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment