polars.Config.save#

classmethod Config.save(file: Path | str | None = None) str[source]#

Save the current set of Config options as a json string or file.

Parameters:
file

optional path to a file into which the json string will be written.

Returns:
str

JSON string containing current Config options, or the path to the file where the options are saved.

Examples

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