pandas.reset_option — pandas 3.0.0.dev0+2098.g9c5b9ee823 documentation (original) (raw)
pandas.reset_option(pat)[source]#
Reset one or more options to their default value.
This method resets the specified pandas option(s) back to their default values. It allows partial string matching for convenience, but users should exercise caution to avoid unintended resets due to changes in option names in future versions.
Parameters:
patstr/regex
If specified only options matching pat*
will be reset. Pass "all"
as argument to reset all options.
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:
None
No return value.
See also
Retrieve the value of the specified option.
Set the value of the specified option or options.
Print the description for one or more registered options.
Notes
For all available options, please view theUser Guide.
Examples
pd.reset_option("display.max_columns")