title: How to Perform groupBy in PySpark?
body: <pre><code>auto = sc.textFile("temp/auto_data.csv")
  auto = auto.map(lambda x: x.split(","))
  header = auto.first()
  autoData = auto.filter(lambda a: a!=header)
  </code></pre>
  
  <p>now I have data in autoData</p>
  
  <pre><code>[[u'', u'ETZ', u'AS1', u'CUT000021', u'THE TU-WHEEL SPARES', u'DIBRUGARH', u'201505', u'LCK   ', u'2WH   ', u'KIT', u'KT-2069CZ', u'18', u'8484'], [u'', u'ETZ', u'AS1', u'CUT000021', u'THE TU-WHEEL SPARES', u'DIBRUGARH', u'201505', u'LCK   ', u'2WH   ', u'KIT', u'KT-2069SZ', u'9', u'5211']]
  </code></pre>
  
  <p>now I want to perform <code>groupBy()</code> on 2nd and 12th(last) values. How to do this?   </p>