Skip to content

Commit

Permalink
Re-add depr test
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Feb 25, 2024
1 parent d9b2b86 commit 6c96b61
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions py-polars/tests/unit/operations/test_pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,18 @@ def test_aggregate_function_default() -> None:
df.pivot(index="b", columns="c", values="a")


def test_pivot_positional_args_deprecated() -> None:
df = pl.DataFrame(
{
"foo": ["A", "A", "B", "B", "C"],
"N": [1, 2, 2, 4, 2],
"bar": ["k", "l", "m", "n", "o"],
}
)
with pytest.deprecated_call():
df.pivot("N", "foo", "bar", aggregate_function=None)


def test_pivot_aggregate_function_count_deprecated() -> None:
df = pl.DataFrame(
{
Expand Down

0 comments on commit 6c96b61

Please sign in to comment.