-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
TST: IntegerNA Support for DataFrame.diff() #34889
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution!
Can you also checked the expected result when doing diff(axis=1)
?
) | ||
|
||
# Test case for default behaviour of diff | ||
result_default = df.diff() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hate to be pendantic about this, but can you use result & expected for both cases (the variable names)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure. Didn't want to overwrite the variable names here. Would you suggest to overwrite, or create a separate test function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just overwriting the same names is fine here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I parameterized the test so overwriting is not necessary anymore.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I parameterized the test so overwriting is not necessary anymore.
Did you push these changes? Currently I can't see any parametrisation
looks good (will merge shortly, trying to get master to run first). |
thanks @Marvzinc |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff
Test for IntegerNA support DataFrame.diff().