Created
July 24, 2020 15:23
-
-
Save fyyying/36f7acc12f13f3d68ab3d85f10c4c103 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
# Create a small dataset with SparkContext | |
data = ["Owen", 22] | |
rdd = spark.sparkContext.parallelize(data) | |
df = spark.createDataFrame(rdd, ["name", "age"]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment