Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate fill_method and limit in pct_change APIs #14277

Merged

Conversation

galipremsagar
Copy link
Contributor

@galipremsagar galipremsagar commented Oct 13, 2023

Description

This PR deprecated fill_method and limit in Series.pct_change, DataFrame.pct_change and Groupby.pct_change

This PR:

= 1263 failed, 98996 passed, 2069 skipped, 776 xfailed, 312 xpassed, 20 errors in 701.08s (0:11:41) =

On pandas_2.0_feature_branch:

= 1584 failed, 98570 passed, 2069 skipped, 776 xfailed, 312 xpassed, 20 errors in 737.24s (0:12:17) =

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@galipremsagar galipremsagar added improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Oct 13, 2023
@galipremsagar galipremsagar self-assigned this Oct 13, 2023
@galipremsagar galipremsagar requested a review from a team as a code owner October 13, 2023 01:05
@galipremsagar galipremsagar requested review from bdice and isVoid and removed request for a team October 13, 2023 01:05
@github-actions github-actions bot added the cuDF (Python) Affects Python cuDF API. label Oct 13, 2023
@@ -2298,9 +2304,15 @@ def pct_change(
Periods to shift for forming percent change.
fill_method : str, default 'ffill'
How to handle NAs before computing percent changes.

.. deprecated:: 23.12
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So recently, supported was added back for fill_method=None which means "don't fill the NA values" pandas-dev/pandas#55527

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done, updated 👍

FutureWarning,
)

if fill_method in (no_default, None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I would expect to skip the fillna step if fill_method=None

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah interesting. OK yeah best to match pandas here then

@galipremsagar galipremsagar merged commit 90788f2 into rapidsai:pandas_2.0_feature_branch Nov 29, 2023
18 of 20 checks passed
@galipremsagar galipremsagar added the 5 - Ready to Merge Testing and reviews complete, ready to merge label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
5 - Ready to Merge Testing and reviews complete, ready to merge cuDF (Python) Affects Python cuDF API. improvement Improvement / enhancement to an existing function non-breaking Non-breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

None yet

2 participants