-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Series.diff does no arg validation unlike df.diff for periods
#56607
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
Comments
Thanks for reporting this - I can reproduce this on the main branch. Are you interested in making a PR? |
Can I support you @lithomas1 ? I am new to open source and want to contribute. |
Sure, contributing instructions can be found here After you get set up, you'll want to figure out how dataframe validates the periods (the traceback should help you here) and port it over to the series method(which can be found in Then, you'll want to add a test in |
Hi I started working on this issue, i have found that there is no validation check in series, and series is using algorithms.diff(periods) |
I think I fixed this issue. Here is the pull request: #56659 Please let me know in case of any issues. |
Hi I have raised a PR addressing this issues, Ready for Review |
Thanks a lot, @lithomas1 for sharing the document. I have submitted the PR request for this issue. Not sure, how this is addressed with three people contributing. |
I think @pmhatre1 started working on this before you, so I've closed your PRs. I'm happy to help you get started with some other issues if you find any other interesting issues on the issue tracker, though. |
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
The text was updated successfully, but these errors were encountered: