6.2. Pandas Set Option

6.2.1. Display Output

6.2.2. Limited

import pandas as pd

pd.set_option('display.max_rows', 10)
import pandas as pd

pd.set_option('display.height', 1000)
pd.set_option('display.max_columns', 500)
pd.set_option('display.width', 1000)

6.2.3. Unlimited

import pandas as pd

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

6.2.4. Using in context

import pandas as pd

with pd.option_context('display.max_rows', 100):
    print(df)
import pandas as pd

with pd.option_context('display.max_rows', None, 'display.max_columns', 3):
    print(df)

6.2.5. Assignments

Todo

Create assignments