title: How to convert pandas dataframe to pyspark dataframe which has attribute to rdd?
body: <p>Now I am doing a project for my course, and find a problem to convert <code>pandas dataframe</code> to <code>pyspark dataframe</code> .
  I have produce a pandas dataframe named data_org as follows.
  <a href="https://i.stack.imgur.com/Yfjml.png" rel="nofollow noreferrer">enter image description here</a></p>
  <p>And I want to covert it into pyspark dataframe to adjust it into libsvm format.
  So my code is</p>
  <pre><code>from pyspark.sql import SQLContext  
  spark_df = SQLContext.createDataFrame(data_org)
  </code></pre>
  <p>However, it went wrong.</p>
  <blockquote>
  <p>TypeError: createDataFrame() missing 1 required positional argument: 'data'</p>
  </blockquote>
  <p>I really do not know how to do. And my python version is 3.5.2 and pyspark version is 2.0.1.
  I am looking forward to your reply.</p>