Skip to content

Commit

Permalink
docs(python): Rendering long docstring lines. (#5150)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghuls committed Oct 10, 2022
1 parent 820452a commit 608898a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions py-polars/polars/internals/lazy_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def cumsum(
column: str | Sequence[pli.Expr | str] | pli.Series | pli.Expr,
) -> pli.Expr | Any:
"""
Cumulatively sum values in a column/Series, or horizontally across list of columns/expressions. # noqa E501
Cumulatively sum values in a column/Series, or horizontally across list of columns/expressions.
``pl.cumsum(str)`` is syntactic sugar for:
Expand Down Expand Up @@ -865,7 +865,7 @@ def cumsum(
│ 2 ┆ 4 ┆ 6 ┆ {2,8} │
└─────┴─────┴─────┴───────────┘
"""
""" # noqa E501
if isinstance(column, pli.Series):
return column.cumsum()
elif isinstance(column, str):
Expand Down Expand Up @@ -1046,7 +1046,7 @@ def cumfold(
include_init: bool = False,
) -> pli.Expr:
"""
Cumulatively accumulate over multiple columns horizontally/ row wise with a left fold. # noqa E501
Cumulatively accumulate over multiple columns horizontally/ row wise with a left fold.
Every cumulative result is added as a separate field in a Struct column.
Expand All @@ -1063,7 +1063,7 @@ def cumfold(
include_init
Include the initial accumulator state as struct field.
"""
""" # noqa E501
# in case of pl.col("*")
acc = pli.expr_to_lit_or_expr(acc, str_to_lit=True)
if isinstance(exprs, pli.Expr):
Expand Down

0 comments on commit 608898a

Please sign in to comment.