dataframepysparkshow

How to show all records in Spark DataFrame by method .show()?


Assume that I want to see all records of a PySpark DataFrame using show().

Show() has a parameter n that controls number of records to be shown. Is there any way that I can show all records of the DataFrame?


Solution

  • I guess this should work fine for you:

    df.show(df.count(),False)