I would like to display the entire Apache Spark SQL DataFrame with the Scala API. I can use the show() method:
show()
myDataFrame.show(Int.MaxValue)
Nothing more succinct than that, but if you want to avoid the Int.MaxValue, then you could use a collect and process it, or foreach. But, for a tabular format without much manual code, show is the best you can do.
Int.MaxValue
collect
foreach
show