Skip to content

Commit f58049b

Browse files
committed
Round test values
1 parent bd9d127 commit f58049b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

__tests__/dataframe.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ describe("dataframe", () => {
3636
const expected = ["d", "e"];
3737
const df = pl.DataFrame({ a: [1, 2, 3], b: ["a", "b", "c"] });
3838
df.columns = expected;
39-
4039
expect(df.columns).toEqual(expected);
4140
});
4241
test("clone", () => {
@@ -51,12 +50,13 @@ describe("dataframe", () => {
5150
b: ["a", "b", "c"],
5251
c: [true, true, false],
5352
})
54-
.describe();
53+
.describe()
54+
.withColumn(pl.col("c").round(6).as("c"));
5555
const expected = pl.DataFrame({
5656
describe: ["mean", "std", "min", "max", "median"],
5757
a: [2, 1, 1, 3, 2],
5858
b: [null, null, "a", "c", null],
59-
c: [0.6666666666666666, 0.5773502691896258, 0, 1, 1],
59+
c: [0.666667, 0.57735, 0, 1, 1],
6060
});
6161
expect(actual).toFrameEqual(expected);
6262
});

0 commit comments

Comments
 (0)