Created
May 3, 2023 05:04
-
-
Save raisinbl/c21d22b036829b4ccde8fe3e0efca164 to your computer and use it in GitHub Desktop.
testing if pyspark lib is installed correctly and spark-submit is work
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
from pyspark.sql import SparkSession | |
spark = SparkSession.builder.appName("SimpleApp").getOrCreate() | |
data = [("Alice", 1), ("Bob", 2), ("Charlie", 3)] | |
df = spark.createDataFrame(data, ["Name", "Age"]) | |
df.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment