Created
June 2, 2019 04:22
-
-
Save guerbai/a8582ee36c42914124dd87a2dbdb88fe to your computer and use it in GitHub Desktop.
spark setup #Jupyter
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
import findspark | |
findspark.init() | |
import pyspark | |
import random | |
sc = pyspark.SparkContext(appName="") | |
sc.stop() | |
# get shape | |
print ((df.count(), len(df.columns))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment