Skip to content

Instantly share code, notes, and snippets.

@Crispy13
Created July 14, 2023 09:55
Show Gist options
  • Save Crispy13/bfebd17408327f723a9e1e1b7c0b25c4 to your computer and use it in GitHub Desktop.
Save Crispy13/bfebd17408327f723a9e1e1b7c0b25c4 to your computer and use it in GitHub Desktop.
Slice polars Series | Rust
use polars::prelude::*;
fn main() {
let s = Series::new("a", 0..100.collect::<Vec<i64>>);
println!("{:?}", s.slice(20, 10)); // 20..30
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment