- Published on
- · Data Independent
Pandas Head | pd.DataFrame.head()
This post is auto-generated from a public YouTube video for personal study notes. It is not an endorsement. The transcript is machine-derived and may contain errors; refer to the original video for accuracy.
About this video
Pandas Head might be our single most used function in the library. It is essential for quickly testing to ensure your data is correct, especially with a notebook type environment.
Pandas Head will return the top n-number of rows of your DataFrame. It is essential for checking to make sure your data is what you think it is. It's close cousin, Pandas Tail will return the bottom n-number of rows.
pd.DataFrame.head(n=number_of_rows)
Loading transcript…