Skip to content

JSON Support for parsing NaN, Infinity and -Infinity #30295

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 10 commits into from
Jan 2, 2020

Conversation

WillAyd
Copy link
Member

@WillAyd WillAyd commented Dec 17, 2019

Not sure if we totally want this but figured I'd give it a shot any way. simplejson and the stdlib by comparison would decode these values

@WillAyd WillAyd added the IO JSON read_json, to_json, json_normalize label Dec 17, 2019
@WillAyd
Copy link
Member Author

WillAyd commented Dec 17, 2019

Ran benchmarks just to be safe and no changes appeared

Object_endObject, Object_newArray, Object_endArray,
Object_newInteger, Object_newLong, Object_newDouble,
Object_releaseObject, PyObject_Malloc, PyObject_Free,
PyObject_Realloc};
Copy link
Member

Choose a reason for hiding this comment

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

does the alignment here matter?

Copy link
Member Author

Choose a reason for hiding this comment

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

Purely stylistic but I'll fix it up

@jreback jreback added this to the 1.0 milestone Dec 27, 2019
Copy link
Contributor

@jreback jreback left a comment

Choose a reason for hiding this comment

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

lgtm. needs a rebase, merge on green.

@WillAyd WillAyd merged commit 3755762 into pandas-dev:master Jan 2, 2020
@WillAyd
Copy link
Member Author

WillAyd commented Jan 2, 2020

Great thanks Jeff

@WillAyd WillAyd deleted the json-inf-support branch January 2, 2020 00:40
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support Infinity, -Infinity and NaN in read_json
3 participants