Advertisement
LrdArc

Untitled

Oct 18th, 2016
332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.35 KB | None | 0 0
  1. dataPath = "/FileStore/tables/tq3wf3i81476694473133/data_penduduk.csv"
  2. penduduk = sqlContext.read.format("com.databricks.spark.csv")\
  3.   .option("header","true")\
  4.   .option("inferSchema", "true")\
  5.   .load(dataPath)
  6.  
  7. # inferSchema means we will automatically figure out column types
  8. # at a cost of reading the data more than once
  9. display(penduduk)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement