0

I have the following code:

use polars::prelude::*;
use polars_lazy::prelude::*;

pub fn main() -> Result<(), PolarsError> {
    let df = df! (
        "start" => &[3, 8, 5],
        "end" => &[6, 9, 7],
        "idx" => &[0, 1, 2],
    )?;
}

How do I get "start" as a series? I can't see a to_series or anything.

Progman
  • 16,827
  • 6
  • 33
  • 48
The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156

1 Answers1

0

That was easy:

let s = df.column("start").unwrap();
print!("{}", s);
The Unfun Cat
  • 29,987
  • 31
  • 114
  • 156