from pyspark.sql import SQLContext
sqlContext = SQLContext(sc)
df = sqlContext.read.format('com.databricks.spark.csv').options(header='true'
    ).load('file.csv')
How to add any new library like spark-csv in Apache Spark prebuilt version