polars.Config.state#

classmethod Config.state(if_set: bool = False, env_only: bool = False) dict[str, str | None][source]#

Show the current state of all Config variables as a dict.

Parameters:
if_setbool

by default this will show the state of all Config environment variables. change this to True to restrict the returned dictionary to include only those that have been set to a specific value.

env_onlybool

include only Config environment variables in the output; some options (such as “set_fmt_float”) are set directly, not via an environment variable.

Examples

>>> set_state = pl.Config.state(if_set=True)
>>> all_state = pl.Config.state()