Skip to content

Commit

Permalink
create new pr
Browse files Browse the repository at this point in the history
  • Loading branch information
skirui-source committed Dec 2, 2021
1 parent 5491cc7 commit c4fba3f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions python/cudf/cudf/core/dataframe.py
Original file line number Diff line number Diff line change
Expand Up @@ -6329,6 +6329,30 @@ def explode(self, column, ignore_index=False):

return super()._explode(column, ignore_index)

def pct_change(self):
"""
Calculates the percent change between sequential elements
in the DataFrame.
Parameters
----------
periods : int, default 1
Periods to shift for forming percent change.
fill_method : str, default 'ffill'
How to handle NAs before computing percent changes.
limit : int, optional
The number of consecutive NAs to fill before stopping.
Not yet implemented.
freq : str, optional
Increment to use from time series API.
Not yet implemented.
Returns
-------
DataFrame
"""
pass

def __dataframe__(
self, nan_as_null: bool = False, allow_copy: bool = True
):
Expand Down

0 comments on commit c4fba3f

Please sign in to comment.