Skip to content

Commit

Permalink
Remove two doctest: +IGNORE_RESULT directives (#2160)
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj committed Dec 25, 2021
1 parent 9b7ab55 commit 68fc5c7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 15 deletions.
8 changes: 4 additions & 4 deletions py-polars/polars/internals/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1189,25 +1189,25 @@ def apply(
... )
>>> (
... df.lazy()
... .groupby("b")
... .groupby("b", maintain_order=True)
... .agg(
... [
... pl.col("a").apply(lambda x: x.sum()),
... ]
... )
... .collect()
... ) # doctest: +IGNORE_RESULT
... )
shape: (3, 2)
┌─────┬─────┐
│ b ┆ a │
│ --- ┆ --- │
│ str ┆ i64 │
╞═════╪═════╡
c2
a1
├╌╌╌╌╌┼╌╌╌╌╌┤
│ b ┆ 2 │
├╌╌╌╌╌┼╌╌╌╌╌┤
a1
c2
└─────┴─────┘
"""
Expand Down
12 changes: 1 addition & 11 deletions py-polars/polars/internals/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ class DataFrame:
>>> import numpy as np
>>> data = np.array([(1, 2), (3, 4)], dtype=np.int64)
>>> df3 = pl.DataFrame(data, columns=["a", "b"], orient="col")
>>> df3 # doctest: +IGNORE_RESULT
>>> df3
shape: (2, 2)
┌─────┬─────┐
│ a ┆ b │
Expand Down Expand Up @@ -2250,16 +2250,6 @@ def groupby(
╞═════╪═════╪═════╡
│ c ┆ 6 ┆ 1 │
└─────┴─────┴─────┘
shape: (2, 3)
┌─────┬─────┬─────┐
│ a ┆ b ┆ c │
│ --- ┆ --- ┆ --- │
│ str ┆ i64 ┆ i64 │
╞═════╪═════╪═════╡
│ a ┆ 1 ┆ 6 │
├╌╌╌╌╌┼╌╌╌╌╌┼╌╌╌╌╌┤
│ a ┆ 3 ┆ 4 │
└─────┴─────┴─────┘
"""
if isinstance(by, str):
Expand Down

0 comments on commit 68fc5c7

Please sign in to comment.