Skip to content

Commit

Permalink
add arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
isVoid committed Oct 25, 2021
1 parent 290805e commit be31e93
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion python/cudf/cudf/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,10 @@ def apply(self, func, *args, **kwargs):
----------
func : function
A user defined function that takes an 1D array as input
args : tuple
unsupported.
kwargs
unsupported
See also
--------
Expand All @@ -308,7 +312,7 @@ def apply(self, func, *args, **kwargs):
... if i > 3:
... count += 1
... return count
...
...
>>> s = cudf.Series([0, 1.1, 5.8, 3.1, 6.2, 2.0, 1.5])
>>> s.rolling(3, min_periods=1).apply(count_if_gt_3)
0 0
Expand Down

0 comments on commit be31e93

Please sign in to comment.