Is there better way to display entire Spark SQL DataFrame?

后端 未结 7 873
轻奢々
轻奢々 2021-01-30 20:53

I would like to display the entire Apache Spark SQL DataFrame with the Scala API. I can use the show() method:

myDataFrame.show(Int.MaxValue)
         


        
7条回答
  •  忘掉有多难
    2021-01-30 21:48

    Try with,

    df.show(35, false)

    It will display 35 rows and 35 column values with full values name.

提交回复
热议问题