call_report.config.set_config#
- call_report.config.set_config(*, dataframe_backend: Literal['pandas', 'polars', 'pyarrow'] | None = None, lazy: bool | None = None) None[source]#
Update the current thread’s package configuration.
Only the keys explicitly passed are changed. Omitted keys keep their current value. The change is thread-local, so it never affects other threads.
- Parameters:
- dataframe_backend{“pandas”, “polars”, “pyarrow”}, optional
The dataframe library that readers should return native frames for.
- lazybool, optional
If
True, readers return a lazy frame (currently only supported for the"polars"backend, viapolars.LazyFrame).
- Raises:
- ValueError
If dataframe_backend is not a supported backend name, or if the resulting dataframe_backend/lazy combination is unsupported (e.g.
lazy=Truewith the"pandas"backend).
Examples
>>> set_config(dataframe_backend="polars") >>> get_config()["dataframe_backend"] 'polars' >>> set_config(dataframe_backend="pandas")