How to show full column content in a Spark Dataframe?

前端 未结 14 2154
萌比男神i
萌比男神i 2020-12-07 07:46

I am using spark-csv to load data into a DataFrame. I want to do a simple query and display the content:

val df = sqlContext.read.format(\"com.databricks.spa         


        
14条回答
  •  失恋的感觉
    2020-12-07 08:20

    Within Databricks you can visualize the dataframe in a tabular format. With the command:

    display(results)
    

    It will look like

提交回复
热议问题