how to print the head of a dataframe in python code example
Example 1: head pandas python
# Returns the first 5 rows
df.head(n=5)
Example 2: getting head in pandas
# to show the first 5 coloums of the tabel
df.head()
# Returns the first 5 rows
df.head(n=5)
# to show the first 5 coloums of the tabel
df.head()