import findspark
findspark.init()
import spark.implicits._
columns = Seq("Seqno","Quote")
data = Seq(("1", "Be the change that you wish to see in the world"),
("2", "Everyone thinks of changing the world, but no one thinks of changing
himself."),
("3", "The purpose of our lives is to be happy."))
df = data.toDF(columns)
dfCache = df.cache()
dfCache.show(false)