Skip to content

Commit

Permalink
chore(python): Rename argument f to function in reduce docstring (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj authored Apr 3, 2023
1 parent 6836eb4 commit 27d2e4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-polars/polars/functions/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ def reduce(
Horizontally sum over all columns.
>>> df.select(
... pl.reduce(f=lambda acc, x: acc + x, exprs=pl.col("*")).alias("sum"),
... pl.reduce(function=lambda acc, x: acc + x, exprs=pl.col("*")).alias("sum"),
... )
shape: (3, 1)
┌─────┐
Expand Down

0 comments on commit 27d2e4a

Please sign in to comment.