July 2018
Intermediate to advanced
474 pages
13h 37m
English
When working with PySpark, a SparkSession must first be imported and initialized before any dataframe creation can occur:
from pyspark.sql import SparkSession
spark = SparkSession.builder \ .master("local") \ .appName("Neural Network Model") \ .config("spark.executor.memory", "6gb") \ .getOrCreate()sc = spark.sparkContext
Read now
Unlock full access