Skip to main content
`Ctrl`+`K`

# pandas.reset_option

pandas.reset_option(pat)

  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:
    pat str/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

  `get_option`

    Retrieve the value of the specified option.

  `set_option`

    Set the value of the specified option or options.

  `describe_option`

    Print the description for one or more registered options.

  Notes

  For all available options, please view the User Guide.

  Examples

      >>> pd.reset_option("display.max_columns")