Skip to content

added validation for series datatypes #56659

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

Closed

Conversation

neha3004
Copy link

closes #56607
This fix makes sure Series.diff validates and throws an exception based on the datatype.
Changes made:

  • import "is_float" from pandas
  • Checking if the input periods are integers/float or not before calling "algorithms.diff"

Behaviour after the changes:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Series.diff does no arg validation unlike df.diff for periods
2 participants