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

PySpark: Dataframe Preview (Part 1)

This tutorial will explain how you can preview, display or print 'n' rows to the console from the Spark dataframe. Below listed dataframe functions will be explained with examples, click on function name in 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 to the console in a tabular format. Show function can take up to 3 parameters and all 3 parameters are optional.