title: how to use createDataFrame to create a pyspark dataframe?
body: <p>I know this is probably to be a stupid question. I have the following code:</p>
  
  <pre><code>from pyspark.sql import SparkSession
  rows = [1,2,3]
  df = SparkSession.createDataFrame(rows)
  df.printSchema()
  df.show()
  </code></pre>
  
  <p>But I got an error:</p>
  
  <pre><code>createDataFrame() missing 1 required positional argument: 'data'
  </code></pre>
  
  <p>I don't understand why this happens because I already supplied 'data', which is the variable rows.</p>
  
  <p>Thanks</p>