Skip to content

Commit

Permalink
Fix GroupBy.apply doc examples rendering (#12994)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandon-b-miller authored Mar 23, 2023
1 parent 33e2387 commit fb96fc8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/cudf/cudf/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1278,13 +1278,14 @@ def mult(df):
``engine='jit'`` may be used to accelerate certain functions,
initially those that contain reductions and arithmetic operations
between results of those reductions:
>>> import cudf
>>> df = cudf.DataFrame({'a':[1,1,2,2,3,3], 'b':[1,2,3,4,5,6]})
>>> df.groupby('a').apply(
... lambda group: group['b'].max() - group['b'].min(),
... engine='jit'
... lambda group: group['b'].max() - group['b'].min(),
... engine='jit'
... )
a None
a None
0 1 1
1 2 1
2 3 1
Expand Down

0 comments on commit fb96fc8

Please sign in to comment.