Skip to content

Clean Up Categorical Test for JSON #33228

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
merged 2 commits into from
Apr 3, 2020

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Apr 2, 2020

This is a little wonky in its current state, bolting categoricals onto an existing object / fixture

Instead just localized this to the one test that covers it for now

@WillAyd WillAyd added IO JSON read_json, to_json, json_normalize Testing pandas testing functions or related to the test suite labels Apr 2, 2020
data = self.categorical.to_json(orient=orient)
if numpy and orient in ("records", "values"):
data = df.to_json(orient=orient)
if numpy and orient != "split":
Copy link
Member Author

@WillAyd WillAyd Apr 2, 2020

Choose a reason for hiding this comment

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

I removed the xfail preceding this because it was no longer applicable, but it unearthed a new issue when numpy=True and any orient except split.

That keyword is deprecated in #28512 and scheduled for removal in 2.0, so figured not worth investing much in

@WillAyd
Copy link
Member Author

WillAyd commented Apr 2, 2020

/azp run

@azure-pipelines
Copy link
Contributor

Azure Pipelines successfully started running 1 pipeline(s).

@mroeschke mroeschke added this to the 1.1 milestone Apr 3, 2020
@jbrockmendel jbrockmendel merged commit 37dc5dc into pandas-dev:master Apr 3, 2020
@jbrockmendel
Copy link
Member

thanks @WillAyd

@WillAyd WillAyd deleted the json-parametrize-more3 branch April 4, 2020 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO JSON read_json, to_json, json_normalize 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