Skip to content

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

Merged

Conversation

ganevgv
Copy link
Contributor

@ganevgv ganevgv commented Nov 10, 2019

@@ -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",
Copy link
Member

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"?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @mroeschke - done.

@mroeschke mroeschke added Numeric Operations Arithmetic, Comparison, and Logical operations Testing pandas testing functions or related to the test suite labels Nov 10, 2019
@ganevgv ganevgv force-pushed the tests/series_df_logical_nan_consistency branch from 9f4a29d to ad6350a Compare November 10, 2019 19:11
@jreback jreback added this to the 1.0 milestone Nov 11, 2019
([True, False, True], [True, False, np.nan], [True, False, True]),
],
)
def test_logical_operators_nans(self, left, right, expected):
Copy link
Contributor

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

Copy link
Contributor Author

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.

@jreback jreback merged commit 29718c3 into pandas-dev:master Nov 12, 2019
@jreback
Copy link
Contributor

jreback commented Nov 12, 2019

thanks @ganevgv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Numeric Operations Arithmetic, Comparison, and Logical operations Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

API: Series/DataFrame logical op NaN propagation
3 participants