Skip to content

Commit

Permalink
Updating to rs-0.44.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bidek56 committed Nov 1, 2024
1 parent 39c8bf5 commit 2ede10f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ napi = { version = "2.16.13", default-features = false, features = [
"serde-json",
] }
napi-derive = { version = "2.16.12", default-features = false }
polars-core = { git = "https://github.com/pola-rs/polars.git", rev = "18fbf524dcc53b15ba0030d1be12fbaa7a3bc34a", default-features = false }
polars-io = { git = "https://github.com/pola-rs/polars.git", rev = "18fbf524dcc53b15ba0030d1be12fbaa7a3bc34a", default-features = false }
polars-lazy = { git = "https://github.com/pola-rs/polars.git", rev = "18fbf524dcc53b15ba0030d1be12fbaa7a3bc34a", default-features = false }
polars-core = { git = "https://github.com/pola-rs/polars.git", rev = "2dce3d3b5c80ae7522a3435f844fac8fed9dc9e8", default-features = false }
polars-io = { git = "https://github.com/pola-rs/polars.git", rev = "2dce3d3b5c80ae7522a3435f844fac8fed9dc9e8", default-features = false }
polars-lazy = { git = "https://github.com/pola-rs/polars.git", rev = "2dce3d3b5c80ae7522a3435f844fac8fed9dc9e8", default-features = false }
thiserror = "1"
smartstring = { version = "1" }
serde_json = { version = "1" }
Expand Down Expand Up @@ -163,7 +163,7 @@ features = [
"azure"
]
git = "https://github.com/pola-rs/polars.git"
rev = "18fbf524dcc53b15ba0030d1be12fbaa7a3bc34a"
rev = "2dce3d3b5c80ae7522a3435f844fac8fed9dc9e8"

[build-dependencies]
napi-build = "2.1.3"
Expand Down
4 changes: 2 additions & 2 deletions __tests__/expr.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1647,7 +1647,7 @@ describe("expr.lst", () => {
test("head", () => {
const s0 = pl.Series("a", [[3, 5, 6, 7, 8]]);
let actual = s0.lst.head(1);
let expected = pl.Series("a", [3]);
let expected = pl.Series("a", [[3]]);
expect(actual.seriesEqual(expected));
actual = s0.lst.head();
expected = pl.Series("a", [3, 5, 6, 7, 8]);
Expand All @@ -1656,7 +1656,7 @@ describe("expr.lst", () => {
test("tail", () => {
const s0 = pl.Series("a", [[3, 5, 6, 7, 8]]);
let actual = s0.lst.tail(1);
let expected = pl.Series("a", [8]);
let expected = pl.Series("a", [[8]]);
expect(actual.seriesEqual(expected));
actual = s0.lst.tail();
expected = pl.Series("a", [3, 5, 6, 7, 8]);
Expand Down
4 changes: 2 additions & 2 deletions src/dataframe.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ pub(crate) fn to_series_collection(ps: Array) -> Vec<Column> {
})
.collect()
}
pub(crate) fn to_jsseries_collection(s: Vec<Column>) -> Vec<JsSeries> {
pub(crate) fn to_jsseries_collection(s: Vec<Series>) -> Vec<JsSeries> {
let mut s = std::mem::ManuallyDrop::new(s);

let p = s.as_mut_ptr() as *mut JsSeries;
Expand Down Expand Up @@ -652,7 +652,7 @@ impl JsDataFrame {

#[napi(catch_unwind)]
pub fn get_columns(&self) -> Vec<JsSeries> {
let cols = self.df.get_columns();
let cols: Vec<Series> = self.df.get_columns().iter().map(Column::as_materialized_series).cloned().collect();
to_jsseries_collection(cols.to_vec())
}

Expand Down

0 comments on commit 2ede10f

Please sign in to comment.