-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
read_json ignores dictionary as dtype #33205
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
take |
Would like to work on this if that's ok! (New to the open source community) |
Thanks @dtrizna for the report. can you update the OP with a minimal reproducible example. https://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports provides details how to provide the necessary information for us to reproduce your bug. |
Try it out with following json file:
In case of using these
If we use same
This raises problems with large datasets, when reading data with correct types decrease usage of RAM drasticly. |
Has there been any updates to this. I am experiencing this issue with pandas 1.2.4. |
Code Sample, a copy-pastable example if possible
Results into:
Using .astype() instead converts types correctly:
Problem description
Should take take appropriate data type during DataFrame loading from disc.
Output of
pd.show_versions()
The text was updated successfully, but these errors were encountered: