pandas limit rows code example
Example 1: head pandas python
# Returns the first 5 rows
df.head(n=5)
Example 2: Display max number of columns pandas
pd.options.display.max_columns = 999
pd.options.display.max_rows = 999
# Returns the first 5 rows
df.head(n=5)
pd.options.display.max_columns = 999
pd.options.display.max_rows = 999