Skip to content

Commit

Permalink
Maintain order in tests to avoid fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mcrumiller committed Dec 31, 2024
1 parent ecd05cc commit 291aef0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -10561,7 +10561,7 @@ def bitwise_and(self) -> Expr:
>>> df = pl.DataFrame(
... {"grouper": ["a", "a", "a", "b", "b"], "n": [-1, 0, 1, -1, 1]}
... )
>>> df.group_by("grouper").agg(pl.col("n").bitwise_and())
>>> df.group_by("grouper", maintain_order=True).agg(pl.col("n").bitwise_and())
shape: (2, 2)
┌─────────┬─────┐
│ grouper ┆ n │
Expand Down Expand Up @@ -10592,7 +10592,7 @@ def bitwise_or(self) -> Expr:
>>> df = pl.DataFrame(
... {"grouper": ["a", "a", "a", "b", "b"], "n": [-1, 0, 1, -1, 1]}
... )
>>> df.group_by("grouper").agg(pl.col("n").bitwise_or())
>>> df.group_by("grouper", maintain_order=True).agg(pl.col("n").bitwise_or())
shape: (2, 2)
┌─────────┬─────┐
│ grouper ┆ n │
Expand Down Expand Up @@ -10623,7 +10623,7 @@ def bitwise_xor(self) -> Expr:
>>> df = pl.DataFrame(
... {"grouper": ["a", "a", "a", "b", "b"], "n": [-1, 0, 1, -1, 1]}
... )
>>> df.group_by("grouper").agg(pl.col("n").bitwise_xor())
>>> df.group_by("grouper", maintain_order=True).agg(pl.col("n").bitwise_xor())
shape: (2, 2)
┌─────────┬─────┐
│ grouper ┆ n │
Expand Down

0 comments on commit 291aef0

Please sign in to comment.