title: Ignoring fields from CSV using pyspark dataframe
body: <p><strong>Problem statement:</strong><br />I have a CSV file pipe-delimited with two fields in it.</p>
  <p>I am creating a dataframe and adding new columns to it and assigning values through literals.</p>
  <p>Now let's say if I have a CSV file received with 5 fields and I still want to consider the first two fields and ignore other new fields and proceed to create a dataframe and to add new columns to it.</p>
  <p>Is it possible. Can someone help me on it.</p>