Created
October 26, 2020 20:08
-
-
Save lakshay-arora/9563dc134b2916db16fc431556d795fb 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
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