title: Create a dataframe in pyspark that contains a single column of tuples
body: <p>I have an RDD that contains the following [('column 1',value), ('column 2',value), ('column 3',value), ... , ('column 100',value)].
  I want to create a dataframe that contains a single column with tuples.</p>
  
  <p>The closest I have gotten is:</p>
  
  <pre><code>schema = StructType((StructField("char", StringType(), False), (StructField("count", IntegerType(), False))))
      my_udf = udf(lambda w, c: (w,c), schema)
  </code></pre>
  
  <p>and then </p>
  
  <pre><code>df.select(my_udf('char', 'int').alias('char_int'))
  </code></pre>
  
  <p>but this produces a dataframe with a column of lists, not tuples.</p>