title: Pyspark convert a standard list to data frame
body: <p>The case is really simple, I need to convert a python list into data frame with following code</p>
  
  <pre><code>from pyspark.sql.types import StructType
  from pyspark.sql.types import StructField
  from pyspark.sql.types import StringType, IntegerType
  
  schema = StructType([StructField("value", IntegerType(), True)])
  my_list = [1, 2, 3, 4]
  rdd = sc.parallelize(my_list)
  df = sqlContext.createDataFrame(rdd, schema)
  
  df.show()
  </code></pre>
  
  <p>it failed with following error:</p>
  
  <pre><code>    raise TypeError("StructType can not accept object %r in type %s" % (obj, type(obj)))
  TypeError: StructType can not accept object 1 in type &lt;class 'int'&gt;
  </code></pre>