This file contains hidden or 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
# A simple cheat sheet of Spark Dataframe syntax | |
# Current for Spark 1.6.1 | |
# import statements | |
#from pyspark.sql import SQLContext | |
#from pyspark.sql.types import * | |
#from pyspark.sql.functions import * | |
from pyspark.sql import functions as F | |
#SparkContext available as sc, HiveContext available as sqlContext. |