pandas set max columns code example

Example 1: jupyter display all columns

pd.set_option('display.max_columns', None)

Example 2: pandas show all rows

pd.set_option('display.max_columns', None)  # or 1000
pd.set_option('display.max_rows', None)  # or 1000
pd.set_option('display.max_colwidth', -1)  # or 199

Example 3: 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 4: display Max rows in a pandas dataframe

pandas.set_option('display.max_rows', None)

Example 5: Display max number of columns pandas

pd.options.display.max_columns = 999
pd.options.display.max_rows = 999