-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
TST: add tests for Series/DF logical operations nan propagation #29531
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
TST: add tests for Series/DF logical operations nan propagation #29531
Conversation
pandas/tests/frame/test_operators.py
Outdated
@@ -218,6 +218,20 @@ def test_logical_with_nas(self): | |||
expected = Series([True, True]) | |||
tm.assert_series_equal(result, expected) | |||
|
|||
@pytest.mark.parametrize( | |||
"A, B, C", |
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.
Can you name these "left, right, expected"
?
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, @mroeschke - done.
9f4a29d
to
ad6350a
Compare
pandas/tests/frame/test_operators.py
Outdated
([True, False, True], [True, False, np.nan], [True, False, True]), | ||
], | ||
) | ||
def test_logical_operators_nans(self, left, right, expected): |
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.
can you add tests for and as well
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 feedback, @jreback - done.
thanks @ganevgv |
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff