There are many ways of creating DataFrames. They can be created from local lists, distributed RDDs or reading from datasources.
Using toDF
By importing spark sql implicits, one can create a DataFrame from a local Seq, Array or RDD, as long as the contents are of a Product sub-type (tuples and ca...