Polars integration for plotkit.
This crate activates Polars support in plotkit-core, providing
IntoSeries and
IntoCategories implementations
for Polars Series. Depend on this crate (or
enable the polars feature on the plotkit umbrella crate) to pass
Polars data directly to any plotkit charting function.
Supported types
| Type | Conversion |
|---|---|
&Series (numeric: f64, f32, i32, i64, u32, u64) |
O(n) cast to f64, nulls become NAN |
Series (numeric, owned) |
delegates to borrowed impl |
&Series (string / Utf8) |
O(n) extraction to Vec<String>, nulls become "null" |
Examples
use *;
use IntoSeries;
let s = new;
let plotkit_series = .into_series;
assert_eq!;