polars.Config.save_to_file
-
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
Noneto 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")
classmethod Config.save_to_file(
file: Path | str,
) → None
© 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