-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_json can't import own exported data with orient=table #18912
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
Comments
Although you can write json using Will let others chime in but right now I think this would need to be an enhancement |
FYI don't use
I don't we have any guarantees when you embed lists inside a field and try to export to json. Further I don't think |
|
|
I tried all the documented values for orient that are supported by both read_json and to_json using:
orient = "split"
That even seems to change the semantics and mixes up the index. orient = "records"
That completely looses the index. orient = "index"Produces that traceback for me:
orient = "columns"Also produces that traceback for me:
orient = "values"
Doesn't loose information, but you have to manually set the index columns. So it seems there is no possibility to write and read from json and completely recover the data frame. |
Problem description
test.json looks like:
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: