From 60af576f77063cac1a64e60b1d3dc8ea08635156 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 23 Sep 2024 10:55:13 +0100 Subject: [PATCH 1/2] Fix typo --- crates/polars-error/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/polars-error/src/lib.rs b/crates/polars-error/src/lib.rs index f664c1acf3f3..b67e4702a9c0 100644 --- a/crates/polars-error/src/lib.rs +++ b/crates/polars-error/src/lib.rs @@ -352,7 +352,7 @@ Alternatively, if the performance cost is acceptable, you could just set: on startup."#.trim_start()) }; (duplicate = $name:expr) => { - polars_err!(Duplicate: "column with name '{}' has more than one occurrences", $name) + polars_err!(Duplicate: "column with name '{}' has more than one occurrence", $name) }; (col_not_found = $name:expr) => { polars_err!(ColumnNotFound: "{:?} not found", $name) From 385f290fa5a7c856802427bb11c504a40c74fc3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Gir=C3=A3o=20Serr=C3=A3o?= <5621605+rodrigogiraoserrao@users.noreply.github.com> Date: Mon, 23 Sep 2024 12:40:48 +0100 Subject: [PATCH 2/2] Fix test. --- py-polars/tests/unit/operations/test_pivot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/tests/unit/operations/test_pivot.py b/py-polars/tests/unit/operations/test_pivot.py index c9812fd7e1bd..46e3c26a87f0 100644 --- a/py-polars/tests/unit/operations/test_pivot.py +++ b/py-polars/tests/unit/operations/test_pivot.py @@ -466,7 +466,7 @@ def test_pivot_struct() -> None: def test_duplicate_column_names_which_should_raise_14305() -> None: df = pl.DataFrame({"a": [1, 3, 2], "c": ["a", "a", "a"], "d": [7, 8, 9]}) - with pytest.raises(DuplicateError, match="has more than one occurrences"): + with pytest.raises(DuplicateError, match="has more than one occurrence"): df.pivot(index="a", on="c", values="d")