Created
July 14, 2023 09:55
-
-
Save Crispy13/bfebd17408327f723a9e1e1b7c0b25c4 to your computer and use it in GitHub Desktop.
Slice polars Series | Rust
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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