update,
This commit is contained in:
16
tunmnlu/task_3/Skeleton/Q1/test1.py
Normal file
16
tunmnlu/task_3/Skeleton/Q1/test1.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import pyspark
|
||||
from pyspark.sql import SQLContext
|
||||
from pyspark.sql.functions import hour, when, col, date_format, to_timestamp
|
||||
from pyspark.sql.functions import *
|
||||
|
||||
# sc = pyspark.SparkContext(appName="HW3-Q1")
|
||||
# sqlContext = SQLContext(sc)
|
||||
|
||||
# def load_data():
|
||||
# df = sqlContext.read.option("header",True).csv("./temp.csv")
|
||||
# return df
|
||||
|
||||
# df = load_data()
|
||||
# #df.printSchema()
|
||||
|
||||
print('done')
|
Reference in New Issue
Block a user