Spec-Zone.ru › Polars

polars.Config.save

classmethod Config.save(
    *,
    if_set: bool = False,
) → str

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()

© 2020 Ritchie Vink
© 2022 Polars contributors
Licensed under the MIT License.
https://docs.pola.rs/api/python/stable/reference/api/polars.Config.save.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API