1 class pandas.option_context(*args)
1 import pandas as pd
2 from pandas import option_context
3
4 df = pd.DataFrame([[1, 2, 3, 4, 5], [6, 7, 8, 9, 10]])
5
6 with option_context('display.max_rows', 3, 'display.max_columns', 3):
7 pass
8
9 print('Program completed execution !!')
1 Program completed execution !!
1 import pandas as pd
2 from pandas import option_context
3
4 df = pd.DataFrame([[1, 2, 3, 4, 5]])
5
6 with option_context('display.max_rows', 3, 'display.max_columns', 3):
7 pass
8
9 print('Program completed execution !!')
1 Program completed execution !!