Created
July 24, 2020 15:22
-
-
Save fyyying/254812c73e7e91d3968dc68d77ce56b1 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