Skip to content

Commit

Permalink
Remove deprecation decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller committed Feb 14, 2024
1 parent 38b8f25 commit 9c8da34
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
9 changes: 0 additions & 9 deletions py-polars/polars/dataframe/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -7251,15 +7251,6 @@ def explode(
"""
return self.lazy().explode(columns, *more_columns).collect(_eager=True)

@deprecate_nonkeyword_arguments(
allowed_args=["self"],
message=(
"The order of the parameters of `pivot` will change in the next breaking release."
" The order will become `index, columns, values` with `values` as an optional parameter."
" Use keyword arguments to silence this warning."
),
version="0.20.8",
)
def pivot(
self,
index: ColumnNameOrSelector | Sequence[ColumnNameOrSelector] | None,
Expand Down
12 changes: 0 additions & 12 deletions py-polars/tests/unit/operations/test_pivot.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,18 +429,6 @@ 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 9c8da34

Please sign in to comment.