head in pandas code example
Example 1: head pandas python
# Returns the first 5 rows
df.head(n=5)
Example 2: python - head
df.head(10)
df.tail(10)
Example 3: getting head in pandas
# to show the first 5 coloums of the tabel
df.head()
# Returns the first 5 rows
df.head(n=5)
df.head(10)
df.tail(10)
# to show the first 5 coloums of the tabel
df.head()