-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
json round trip exception #3867
Comments
was a bug, but ran into another feature/bug here's my new test:
so, I am not sure json guarantees order? |
Guess it's not so surprising, python dictionaries don't... (I don't think?). Quite a big file to test against! Not sure, what were you thinking? |
I think @cpcloud had sort of the same problem in html, he added |
do all valid json objects have a total ordering in python? if they do why not guarantee ordering, unless of course that goes against json spec... python dicts don't because there are hashable objects that don't define an ordering eg complex numbers, custom objects, among other erasons |
Hmmm, different bug?
|
which one is more useful to round-trip exactly?
|
@cpcloud any thoughts? |
roundtrip doesn't look like it can be invertible...they both json'd the same because of json's rules about keys in objects (must be string). |
I am going to setup some options so the second will roundtrip while the 1st will work if you pass |
this might present a problem for nested json, no? that's a different beast though so for "frame/series-able" json that's probably ok |
conversion is done at the end |
fixed by #3876 |
closing this as incorporated in #3876 |
This csv (from the baseball database) reads ok to a DataFrame, pastes ok to a json.
cc #3804
The text was updated successfully, but these errors were encountered: