from pandas import set_option code example
Example 1: display maximum columns pandas
import pandas as pd
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)
Example 2: display Max rows in a pandas dataframe
pandas.set_option('display.max_rows', None)