pandas icon indicating copy to clipboard operation
pandas copied to clipboard

feat!: Removes `inplace` option for `pandas.core.resample.Resampler.i…

Open cbpygit opened this issue 1 year ago • 5 comments

…nterpolate`. Fixes / cleans up related test cases.

  • [x] closes #58690 (Replace xxxx with the GitHub issue number)
  • [x] Tests added and passed if fixing a bug or adding a new feature
  • [x] All code checks passed.
  • [x] Added type annotations to new arguments/methods/functions.
  • [x] Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

cbpygit avatar May 27 '24 16:05 cbpygit

@MarcoGorelli somehow it did not auto-assign the reviewers. But in any case, here we are :)

cbpygit avatar May 27 '24 18:05 cbpygit

Do these need to be deprecated first? You can use the deprecate_kwarg decorator for that

Aloqeely avatar May 29 '24 20:05 Aloqeely

Do these need to be deprecated first? You can use the deprecate_kwarg decorator for that

I don't know what the exact policy is. But as far as I understand the deprecation tells the user that a certain future change will change the API. This does not apply here, as the inplace-functionality is already broken. We would need to add the deprecation to pandas 2 to inform users about the upcoming change, and to ease migration. But I guess this would need a separate PR that targets the next 2.x release.

cbpygit avatar May 30 '24 09:05 cbpygit

Do these need to be deprecated first?

Thanks @Aloqeely - in general, yes, this would require a deprecation. However, here, the change is going to breaking anyway (in order to fix a historic ~~feature~~ bug), so to be honest I'd be OK removing inplace without warning too

MarcoGorelli avatar May 30 '24 14:05 MarcoGorelli

@mroeschke can we merge this? 😄

cbpygit avatar Jun 18 '24 18:06 cbpygit

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

github-actions[bot] avatar Jul 22 '24 00:07 github-actions[bot]

This pull request is stale because it has been open for thirty days with no activity. Please update and respond to this comment if you're still interested in working on this.

I'll work on this, I was just unable to spend time.

cbpygit avatar Jul 22 '24 05:07 cbpygit

Thanks for the pull request, but it appears to have gone stale. If interested in continuing, please merge in the main branch, address any review comments and/or failing tests, and we can reopen.

mroeschke avatar Oct 29 '24 20:10 mroeschke