Skip to content

Commit

Permalink
Upgrade dev dependency polars to version 0.45
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Dec 24, 2024
1 parent ad17b6a commit d6d9d8c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ default = ["curve-sampling"]

[dev-dependencies]
doc-comment = "0.3.3"
polars-core = { version = "0.44.2", features = ["fmt"] }
polars-core = { version = "0.45.1", features = ["fmt"] }
7 changes: 3 additions & 4 deletions examples/flower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,20 @@ use matplotlib as plt;

fn main() -> Result<(), Box<dyn std::error::Error>> {
let (fig, [[mut ax]]) = plt::subplots()?;
let pseudacorus_sepal_length = Series::new(
let pseudacorus_sepal_length = Column::new(
"Pseudacorus_Sepal_Length".into(),
&[6.0,6.0,5.8,6.5,5.7,6.8,6.5,6.8,7.0,6.2,6.5,6.6,7.0,7.0,7.5,7.0,
6.8,6.5,6.3,6.2,6.9,6.3,6.3,7.0,6.2,6.8,6.2,6.3,5.8,5.9,6.2,6.3,
6.9,7.3,7.5,6.4,6.6,6.4,6.7,6.4,6.4,6.6,6.4,6.2,6.3,7.9,6.9,6.2,
5.9,6.3]);
let pseudacorus_sepal_width = Series::new(
let pseudacorus_sepal_width = Column::new(
"Pseudacorus_Sepal_width".into(),
&[4.0,3.1,4.0,3.8,3.4,3.7,4.7,4.0,4.5,3.2,3.9,4.0,4.1,4.0,4.6,4.4,
4.0,4.2,3.9,4.0,4.8,4.0,4.2,3.8,3.6,3.3,3.4,3.5,3.1,3.7,4.4,4.5,
4.4,4.2,4.2,4.4,4.0,4.2,4.0,4.9,4.3,4.4,3.6,3.8,3.5,4.3,4.6,3.8,
3.6,3.8]);
let df = DataFrame::new(vec![
Column::Series(pseudacorus_sepal_length),
Column::Series(pseudacorus_sepal_width)])?;
pseudacorus_sepal_length, pseudacorus_sepal_width])?;
println!("df is {:?}", &df);
let x_col = df.column("Pseudacorus_Sepal_Length")?.f64()?;
let y_col = df.column("Pseudacorus_Sepal_width")?.f64()?;
Expand Down

0 comments on commit d6d9d8c

Please sign in to comment.