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() 

Copyright © Code Fetcher 2020

 

 

Leave a comment

Your email address will not be published. Required fields are marked *