title: Spark Dataframe - cannot resolve ... given
body: <p>I was trying to create a data frame in Spark 1.6.0.
  I used this command to create it:-</p>
  
  <pre class="lang-scala prettyprint-override"><code>val df = sqlContext.read.format("com.databricks.spark.csv")
    .option("header","true")
    .option("delimiter",",")
    .option("inferSchema","true")
    .load("/user/rohitchopra32_gmail/Project1_dataset_bank-full(2).csv")
  </code></pre>
  
  <p>It created a data frame but when I try using <code>df.show()</code> command it shows incomplete and unformatted data like this <a href="https://i.stack.imgur.com/6ctve.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6ctve.png" alt="error"></a>
  and also when i tried to select data using <code>val selectedData = df.select("age")</code>
  command it shows me error <a href="https://i.stack.imgur.com/34dbr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/34dbr.png" alt="selected data error"></a></p>
  
  <p>Link to my data set : -<a href="https://drive.google.com/file/d/0BwTgYzZKuzAZMmlfZmNoeWxIZVE/view?usp=sharing" rel="nofollow noreferrer">data set</a></p>
  
  <p>I am new to spark and I don't know what cause this error .
  am I missing something?</p>