Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataPath = "/FileStore/tables/tq3wf3i81476694473133/data_penduduk.csv"
- penduduk = sqlContext.read.format("com.databricks.spark.csv")\
- .option("header","true")\
- .option("inferSchema", "true")\
- .load(dataPath)
- # inferSchema means we will automatically figure out column types
- # at a cost of reading the data more than once
- display(penduduk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement