title: Pandas Dataframe to RDD
body: <p>Can I convert a Pandas DataFrame to RDD? </p>
  
  <pre class="lang-py prettyprint-override"><code>if isinstance(data2, pd.DataFrame):
      print 'is Dataframe'
  else:
      print 'is NOT Dataframe'
  </code></pre>
  
  <p>is DataFrame</p>
  
  <p>Here is the output when trying to use .rdd</p>
  
  <pre class="lang-py prettyprint-override"><code>dataRDD = data2.rdd
  print dataRDD
  </code></pre>
  
  <pre class="lang-none prettyprint-override"><code>AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-56-7a9188b07317&gt; in &lt;module&gt;()
  ----&gt; 1 dataRDD = data2.rdd
        2 print dataRDD
  
  /usr/lib64/python2.7/site-packages/pandas/core/generic.pyc in __getattr__(self, name)
     2148                 return self[name]
     2149             raise AttributeError("'%s' object has no attribute '%s'" %
  -&gt; 2150                                  (type(self).__name__, name))
     2151 
     2152     def __setattr__(self, name, value):
  
  AttributeError: 'DataFrame' object has no attribute 'rdd'
  </code></pre>
  
  <p>I would like to use Pandas Dataframe and not sqlContext to build as I'm not sure if all the functions in Pandas DF are available in Spark. If this is not possible, is there anyone that can provide an example of using Spark DF</p>