How to preview a part of a large pandas DataFrame, in iPython notebook? April 22, 2023 by Tarik df.head(5) # will print out the first 5 rows df.tail(5) # will print out the 5 last rows