This tutorial will explain how you can preview, display or print 'n' rows on the console from the Spark dataframe.

PySpark: Dataframe Preview (Part 1)

This tutorial will explain how you can preview, display or print 'n' rows on the console from the Spark dataframe. Below listed dataframe functions will be explained with examples, click on function name in the below list and it will take you to the respective section of the function:


Show: show() function can be used to display / print first n rows from dataframe on the console in a tabular format. Show function can take up to 3 parameters and all 3 parameters are optional.