polars_online.UnstableWarning¶
- class polars_online.UnstableWarning[source]¶
Bases:
PolarsOnlineWarning,UserWarning,UnstableWarningA warning that a part of the API not yet promised to stay the same was used.
It is issued only when the environment variable
POLARS_ONLINE_WARN_UNSTABLEis1, as Polars issues its ownUnstableWarningunderPOLARS_WARN_UNSTABLE. It is a subclass of Polars’ class too, so a filter onpolars.exceptions.UnstableWarningcovers this library’s unstable parts as well.Each unstable part says so in its docstring, and may change in any release without that counting as a breaking change:
the state file of
polars_online.stream.with_windows();the written form of a formula target’s tree, in a TOML file or a saved state;
polars_online.ModelBank.fit_predict_arrow(),polars_online.ModelBank.predict_arrow()andpolars_online.ArrowStruct;the modules
polars_online.sim,polars_online.corrandpolars_online.gbdt.
Everything else in
__all__is promised.Examples
print(issubclass(po.UnstableWarning, pl.exceptions.UnstableWarning))
True
See also
PolarsOnlineWarning, the base class every warning of this library shares.