polars.Config.save#

classmethod Config.save(*, if_set: bool = False) str[source]#

Save the current set of Config options as a JSON string.

Parameters:
if_set

By default this will save the state of all configuration options; set to False to save only those that have been set to a non-default value.

Returns:
str

JSON string containing current Config options.

See also

load

Load (and set) Config options from a JSON string.

load_from_file

Load (and set) Config options from a JSON file.

save_to_file

Save the current set of Config options as a JSON file.

Examples

>>> json_state = pl.Config.save()