polars.Config.restore_defaults#

classmethod Config.restore_defaults() type[polars.cfg.Config][source]#

Reset all polars Config settings to their default state.

Notes

This method operates by removing all Config options from the environment, and then setting any class-local flags back to their default value.

Examples

>>> cfg = pl.Config.restore_defaults()