Head Pandas Python Code Example

Snippet 1
  # Returns the first 5 rows
df.head(n=5) 
Snippet 2
  # to show the first 5 coloums of the tabel
df.head()