Pandas.get_option() function in Python Last Updated : 02 Jun, 2021 Comments Improve Suggest changes Like Article Like Report Pandas have an options system that lets you customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to see the value of a specified option. get_option() Syntax : pandas.get_option(pat)Parameters : pat : Regexp which should match a single option. Returns : Value of the option Raises : OptionError if no such option exists Example 1 : Fetching the value of maximum and minimum number of columns and rows that can be displayed. Python3 # importing the module import pandas as pd # fetching maximum number of # columns that can be displayed print("The value of max_columns : " + str(pd.get_option("display.max_columns"))) # fetching maximum number of # rows that can be displayed print("The value of max_rows : " + str(pd.get_option("display.max_rows"))) # fetching minimum number of # rows that can be displayed print("The value of min_rows : " + str(pd.get_option("display.min_rows"))) Output : Output may vary. Example 2 : Fetching the attributes related to Excel files. Python3 # importing the module import pandas as pd # default Excel reader engine for ‘ods’ files print("The default Excel reader engine for ‘ods’ files : " + str(pd.get_option("io.excel.ods.reader"))) # default Excel reader engine for ‘xls’ files print("The default Excel reader engine for ‘xls’ files : " + str(pd.get_option("io.excel.xls.reader"))) # default Excel writer engine for ‘xls’ files print("The default Excel writer engine for ‘xls’ files : " + str(pd.get_option("io.excel.xls.writer"))) # default Excel reader engine for ‘xlsb’ files print("The default Excel reader engine for ‘xlsb’ files : " + str(pd.get_option("io.excel.xlsb.reader"))) # default Excel reader engine for ‘xlsm’ files print("The default Excel reader engine for ‘xlsm’ files : " + str(pd.get_option("io.excel.xlsm.reader"))) # default Excel writer engine for ‘xlsm’ files print("The default Excel writer engine for ‘xlsm’ files : " + str(pd.get_option("io.excel.xlsm.writer"))) # default Excel reader engine for ‘xlsm’ files print("The default Excel reader engine for ‘xlsx’ files : " + str(pd.get_option("io.excel.xlsx.reader"))) # default Excel writer engine for ‘xlsx’ files print("The default Excel writer engine for ‘xlsx’ files : " + str(pd.get_option("io.excel.xlsx.writer"))) Output : Comment More infoAdvertise with us Next Article Pandas.get_option() function in Python Y Yash_R Follow Improve Article Tags : Python Python-pandas Practice Tags : python Similar Reads Pandas.set_option() function in Python Pandas have an options system that lets you customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to set the value of a specified option. set_option() Syntax : pandas.set_option(pat, value) Parameters : pat : Regexp which should 2 min read Pandas.reset_option() function in Python Pandas have an options system that lets us customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to reset the value of a specified option back to its default value. reset_option() Syntax : pandas.reset_option(pat) Parameters : 2 min read Pandas.describe_option() function in Python Pandas has an options system that lets you customize some aspects of its behavior, display-related options being those the user is most likely to adjust. Let us see how to see the description of a specified option. describe_option()  Syntax : pandas.describe_option(pat, _print_desc = False)Paramet 1 min read Python | How to get function name ? One of the most prominent styles of coding is following the OOP paradigm. For this, nowadays, stress has been to write code with modularity, increase debugging, and create a more robust, reusable code. This all encouraged the use of different functions for different tasks, and hence we are bound to 3 min read numpy.info() function in Python In Numpy we can get all the information about the function, class, or module like what will the parameter and what will be the type of the return value with the help of numpy.info() function. This function returns the help information for a function, class, or module. Syntax: numpy.info(numpy.info(o 1 min read Matplotlib.axis.Axis.get_pickradius() function in Python Matplotlib is a library in Python and it is numerical â mathematical extension for NumPy library. It is an amazing visualization library in Python for 2D plots of arrays and used for working with the broader SciPy stack. Matplotlib.axis.Axis.get_pickradius() Function The Axis.get_pickradius() functi 2 min read wxPython | GetToolPacking() function in python In this article we are going to learn about GetToolPacking() function associated with wx.ToolBar class of wxPython. GetToolPacking() function simply returns the value used for packing tools.The packing is used for spacing in the vertical direction if the toolbar is horizontal, and for spacing in the 2 min read How to Pass Optional Parameters to a Function in Python In Python, functions can have optional parameters by assigning default values to some arguments. This allows users to call the function with or without those parameters, making the function more flexible. When an optional parameter is not provided, Python uses its default value. There are two primar 5 min read Help function in Python help() function in Python is a built-in function that provides information about modules, classes, functions and modules. It is useful for retrieving information on various Python objects. Example:Pythonhelp()OutputWelcome to Python 3.13's help utility! If this is your first time using Python, you s 5 min read wxPython - GetKind() function in wx.MenuItem In this article we are going to learn about GetKind() function associated with the wx.MenuItem class of wxPython. GetKind function simply returns the item kind, one of ITEM_SEPARATOR, ITEM_NORMAL, ITEM_CHECK or ITEM_RADIO. It takes no parameters. Syntax: wx.GetKind(self) Parameters: No parameters ar 2 min read Like