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

Time:12-21

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?

CodePudding user response:

I guess this should work fine for you:

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

  • Related