pandas.get_option#

pandas.get_option(pat)[source]#

Retrieve the value of the specified option.

Parameters:
patstr

Regexp which should match a single option.

Warning

Partial matches are supported for convenience, but unless you use the full option name (e.g. x.y.z.option_name), your code may break in future versions if new options with similar names are introduced.

Returns:
Any

The value of the option.

Raises:
OptionErrorif no such option exists

Notes

For all available options, please view the User Guide or use pandas.describe_option().

Examples

>>> pd.get_option("display.max_columns")  
4