Skip to content

assert_series_equal doesn't distinguish between different NA values #27613

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
jbrockmendel opened this issue Jul 26, 2019 · 2 comments
Closed
Labels

Comments

@jbrockmendel
Copy link
Member

The following, based on tests.indexing.test_datetime.TestDatetimeIndex.test_indexing_with_datetime_tz passes, I think incorrectly

now = pd.Timestamp.now()
left = pd.Series([now, pd.NaT, pd.NaT], dtype=object)
right = pd.Series([now, np.nan, np.nan], dtype=object)

tm.assert_series_equal(left, right)
@WillAyd
Copy link
Member

WillAyd commented Jul 26, 2019

This may have the same root cause as #18463 (perhaps a duplicate)

@TomAugspurger
Copy link
Contributor

Agreed this looks like #18463.

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

No branches or pull requests

3 participants