Skip to content

Clean Up Categorical Test for JSON#33228

Merged
jbrockmendel merged 2 commits into
pandas-dev:masterfrom
WillAyd:json-parametrize-more3
Apr 3, 2020
Merged

Clean Up Categorical Test for JSON#33228
jbrockmendel merged 2 commits into
pandas-dev:masterfrom
WillAyd:json-parametrize-more3

Conversation

@WillAyd

@WillAyd WillAyd commented Apr 2, 2020

Copy link
Copy Markdown
Member

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

@WillAyd WillAyd Apr 2, 2020

Copy link
Copy Markdown
Member Author

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

WillAyd commented Apr 2, 2020

Copy link
Copy Markdown
Member Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
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
Copy Markdown
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