Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Oct 30, 2021
1 parent f989d0c commit 401624a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion py-polars/docs/source/reference/expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ These functions can be used as expression and sometimes also in eager contexts.

col
count
len
to_list
std
var
Expand Down Expand Up @@ -81,6 +80,7 @@ Aggregation
Expr.list
Expr.agg_groups
Expr.count
Expr.len
Expr.quantile
Expr.arg_min
Expr.arg_max
Expand Down
2 changes: 0 additions & 2 deletions py-polars/polars/eager/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1664,8 +1664,6 @@ def drop_nulls(self, subset: Optional[tp.List[str]] = None) -> "DataFrame":
│ 3 ┆ 8 ┆ "c" │
└─────┴─────┴─────┘
See Also
--------
This method only drops nulls row-wise if any single value of the row is null.
Below are some example snippets that show how you could drop null values based on other
Expand Down
2 changes: 0 additions & 2 deletions py-polars/polars/lazy/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -913,8 +913,6 @@ def drop_nulls(
│ 3 ┆ 8 ┆ "c" │
└─────┴─────┴─────┘
See Also
--------
This method only drops nulls row-wise if any single value of the row is null.
Below are some example snippets that show how you could drop null values based on other
Expand Down
11 changes: 7 additions & 4 deletions py-polars/polars/lazy/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def col(
A string that holds the name of the column
Examples
-------
--------
>>> df = pl.DataFrame({
>>> "ham": [1, 2, 3],
Expand Down Expand Up @@ -622,8 +622,9 @@ def exclude(columns: Union[str, tp.List[str]]) -> "pl.Expr":
columns
Column(s) to exclude from selection
Examples
--------
Examples
--------
>>> df = pl.DataFrame({
>>> "a": [1, 2, 3],
Expand All @@ -643,8 +644,9 @@ def exclude(columns: Union[str, tp.List[str]]) -> "pl.Expr":
├╌╌╌╌╌┼╌╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 3 ┆ null ┆ 1 │
╰─────┴──────┴──────╯
>>> df.select(pl.exclude("b"))
shape: (3, 2)
shape: (3, 2)
╭─────┬──────╮
│ a ┆ c │
│ --- ┆ --- │
Expand All @@ -656,6 +658,7 @@ def exclude(columns: Union[str, tp.List[str]]) -> "pl.Expr":
├╌╌╌╌╌┼╌╌╌╌╌╌┤
│ 3 ┆ 1 │
╰─────┴──────╯
"""
return col("*").exclude(columns)

Expand Down

0 comments on commit 401624a

Please sign in to comment.