Skip to content

Commit ed11388

Browse files
feat[misc]: add latest changes from upstream (pola-rs#10)
* feat[misc]: add latest changes from upstream * chore: run fix:lint
1 parent 7a38ebe commit ed11388

14 files changed

+384
-322
lines changed

Cargo.toml

+7-6
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ crate-type = ["cdylib", "lib"]
1515
[dependencies]
1616
ahash = "0.7"
1717
bincode = "1.3"
18-
napi = { version = "2.2.0", default-features = false, features = ["napi8", "serde-json", "experimental"] }
19-
napi-derive = { version = "2.2.0", default-features = false }
20-
polars-core = { git = "https://github.com/pola-rs/polars.git", rev = "9b3560471b7dae1ef295172bd1c78635d3c773a9", default-features = false }
18+
napi = {version = "2.2.0", default-features = false, features = ["napi8", "serde-json", "experimental"]}
19+
napi-derive = {version = "2.2.0", default-features = false}
20+
polars-core = {git = "https://github.com/pola-rs/polars.git", rev = "e0167a4f5d692a61c959aa10cdcd19081af27007", default-features = false}
2121
thiserror = "1.0.20"
2222

23-
serde_json = { version = "1" }
23+
serde_json = {version = "1"}
2424

2525
[dependencies.polars]
2626
features = [
@@ -79,6 +79,7 @@ features = [
7979
"log",
8080
"serde-lazy",
8181
"partition_by",
82+
"pivot",
8283
"semi_anti_join",
8384
"parquet",
8485
"to_dummies",
@@ -87,8 +88,8 @@ features = [
8788
"list_eval",
8889
"arg_where",
8990
]
90-
git = "https://github.com/pola-rs/polars.git"
91-
rev = "9b3560471b7dae1ef295172bd1c78635d3c773a9"
91+
git = "https://github.com/pola-rs/polars.git"
92+
rev = "e0167a4f5d692a61c959aa10cdcd19081af27007"
9293

9394
[build-dependencies]
9495
napi-build = "1.2.1"

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ Want to know about all the features Polars supports? Read the docs!
137137
#### Node
138138

139139
* Installation guide: `$ yarn install nodejs-polars`
140-
* [Node documentation](https://pola-rs.github.io/polars/nodejs-polars/html/index.html)
140+
* [Node documentation](https://pola-rs.github.io/nodejs-polars/html/index.html)
141141
* [User guide](https://pola-rs.github.io/polars-book/)
142142

143143
## Contribution

__tests__/dataframe.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ describe("dataframe", () => {
506506
"bar": [6, 7, 8],
507507
"ham": ["a", "b", "c"]
508508
}).max();
509-
expect(actual.row(0)).toEqual([3, 8, null]);
509+
expect(actual.row(0)).toEqual([3, 8, "c"]);
510510
});
511511
test("max:axis:1", () => {
512512
const actual = pl.DataFrame({
@@ -548,7 +548,7 @@ describe("dataframe", () => {
548548
"bar": [6, 7, 8],
549549
"ham": ["a", "b", "c"]
550550
}).min();
551-
expect(actual.row(0)).toEqual([1, 6, null]);
551+
expect(actual.row(0)).toEqual([1, 6, "a"]);
552552
});
553553
test("min:axis:1", () => {
554554
const actual = pl.DataFrame({

__tests__/series.test.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -543,14 +543,15 @@ describe("series", () => {
543543
});
544544
it("setAtIdx:array expected matches actual", () => {
545545
const expected = pl.Series([99, 2, 99]);
546-
const actual = pl.Series([1, 2, 3]).setAtIdx([0, 2], 99);
546+
const actual = pl.Series([1, 2, 3]);
547+
actual.setAtIdx([0, 2], 99);
547548
expect(actual).toSeriesEqual(expected);
548549
});
549550
it("setAtIdx:series expected matches actual", () => {
550551
const expected = pl.Series([99, 2, 99]);
551552
const indices = pl.Series([0, 2]);
552-
const actual = pl.Series([1, 2, 3])
553-
.setAtIdx(indices, 99);
553+
const actual = pl.Series([1, 2, 3]);
554+
actual.setAtIdx(indices, 99);
554555
expect(actual).toSeriesEqual(expected);
555556
});
556557
it("setAtIdx: throws error", () => {

0 commit comments

Comments
 (0)