title: Loading compressed gzipped csv file in Spark 2.0
body: <p>How can I load a gzip compressed csv file in Pyspark on Spark 2.0 ?</p>
  
  <p>I know that an uncompressed csv file can be loaded as follows:</p>
  
  <pre><code>spark.read.format("csv").option("header",          
                                  "true").load("myfile.csv")
  </code></pre>
  
  <p>or </p>
  
  <pre><code>spark.read.option("header", "true").csv("myfile.csv")
  </code></pre>