title: How to create spark dataframe from list
body: <p>I have a scala list <code>List[Any] = List("a", "b",...)</code> 
  and I need to get a Spark dataframe consisting on an only row with all the columns in the List. I'm trying to create an RDD from this with <code>sc.parallelize(myList)</code> which return 
  <code>org.apache.spark.rdd.RDD[Any] = ParallelCollectionRDD[5834] at parallelize at &lt;console&gt;:81</code></p>
  
  <p>but then I can't either select specific elements of this row:
  <code>sc.parallelize(myList).map(line =&gt; line(0))</code>
  returns <code>error: Any does not take parameters</code></p>
  
  <p>and I can't either use <code>toDF()</code> to obtain my DataFrame</p>
  
  <p><code>value toDF is not a member of org.apache.spark.rdd.RDD[Any]</code></p>
  
  <p>I suppose it has something to do with the type Any, but I need to admit any type, since I don't know what I will be getting in my list</p>