Skip to content

WIP: TST: pass random names in tm.makeDateIndex #31227

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
wants to merge 1 commit into from

Conversation

jbrockmendel
Copy link
Member

@WillAyd nearly all of the remaining test failures locally are in the json tests. can you take a look and suggest whether we just need to pass check_names=False

I expect if we do something like this we won't want to actually randomize; that part I guess is a proof of concept for now.

@WillAyd
Copy link
Member

WillAyd commented Jan 23, 2020

Just at a brief glance not all of the JSON formats preserve index names. Split is a particular example which came up in #17393

@gfyoung gfyoung added the Testing pandas testing functions or related to the test suite label Jan 25, 2020
@gfyoung
Copy link
Member

gfyoung commented Jan 25, 2020

Just curious: what was the motivation for adding this?

@jbrockmendel
Copy link
Member Author

Just curious: what was the motivation for adding this?

We are using these functions for fixtures that are aimed at trying to cover a wide swath of possible index objects, but are missing large parts of that space.

@@ -520,7 +520,8 @@ def test_map_empty(self, index):
result = s.map({})

expected = pd.Series(np.nan, index=s.index)
tm.assert_series_equal(result, expected)
tm.assert_series_equal(result, expected, check_names=False)
# TODO: can we check names her?
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
# TODO: can we check names her?
# TODO: can we check names here?

@jbrockmendel
Copy link
Member Author

closing to clear the queue, will keep trimming away at these locally

@jbrockmendel jbrockmendel added the Mothballed Temporarily-closed PR the author plans to return to label Apr 21, 2020
@jbrockmendel jbrockmendel deleted the tm-names branch November 20, 2021 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Mothballed Temporarily-closed PR the author plans to return to Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants