Spec-Zone.ru › Polars

polars.Config.save_to_file

classmethod Config.save_to_file(
    file: Path | str,
) → None

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

Parameters:
file

Optional path to a file into which the JSON string will be written. Leave as None to return the JSON string directly.

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

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

Examples

>>> pl.Config().save_to_file("~/polars/config.json")  

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

Spec-Zone.ru

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