title: PySpark groupByKey returning pyspark.resultiterable.ResultIterable
body: <p>I am trying to figure out why my groupByKey is returning the following:</p>
  
  <pre><code>[(0, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a210&gt;), (1, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a4d0&gt;), (2, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a390&gt;), (3, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a290&gt;), (4, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a450&gt;), (5, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a350&gt;), (6, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a1d0&gt;), (7, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a490&gt;), (8, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a050&gt;), (9, &lt;pyspark.resultiterable.ResultIterable object at 0x7fc659e0a650&gt;)]
  </code></pre>
  
  <p>I have flatMapped values that look like this: </p>
  
  <pre><code>[(0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D'), (0, u'D')]
  </code></pre>
  
  <p>I'm doing just a simple: </p>
  
  <pre><code>groupRDD = columnRDD.groupByKey()
  </code></pre>