title: Read csv as Data Frame in spark 1.6
body: <p>I have Spark 1.6 and trying to read a csv (or tsv) file as a dataframe.
  Here are the steps I take:</p>
  
  <pre><code>scala&gt;  val sqlContext= new org.apache.spark.sql.SQLContext(sc)
  scala&gt; import sqlContext.implicits._
  scala&gt; val df = sqlContext.read
  scala&gt; .format("com.databricks.spark.csv")
  scala&gt; .option("header", "true")
  scala.option("inferSchema", "true")
  scala&gt; .load("data.csv")
  scala&gt; df.show()
  </code></pre>
  
  <p>Error: </p>
  
  <pre><code>&lt;console&gt;:35: error: value show is not a member of org.apache.spark.sql.DataFrameReader df.show()
  </code></pre>
  
  <p>The last command is supposed to show the first few lines of the dataframe, but I get the error message. Any help will be much appreciated.</p>