-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Handling of nested JSON records #1067
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
this is invalid JSON (according to jsonlint), but generalized inference is IMHO too complicated, but #3804 should be able to do some of this. close this issue? |
Is it feasible to grab the user section, (actually this example from the other thread is better): Convert the
|
This is probably getting too cute.....
|
Ha! Perhaps less overhead to do |
This could be a reasonably ok solution... tricky with orient (?), then parse_dates or whatever? ...other choice is just to loads/dumps/parse? :s |
here's a bigish nested json: https://github.com/hayd/sf-city-lots-json ~200mb I think I'd want to extract I'm on an incredibly old macbook air, hence slow timings:
What is an extreme for reading in json? |
After I figured out all I needed to do was clone the repository!
|
see #3876 |
Wow, I should never do any data analysis on that laptop... (sorry I forgot that you had to clone it). But what I mean is, you'd lose the control from the read_json arguments. Will be interesting to see if this use case comes up a lot "in the wild". ... really this really this kind of stuff should be done the other end, e.g. with http://www.elasticsearch.org/guide/reference/api/get/ (getting the _source directly). |
I have a JSON normalization function I can clean up and make a PR before before anyone goes crazy writing one to save you some time. It would be nice to have a higher performance one at some point though |
Related: https://groups.google.com/forum/#!topic/pydata/XkiWtZKT698 (json is a list of nested dictionaries...) Hey @nehalecky , I think @wesm says he has something in the works already, so perhaps if you can hold off til he's pushed, then you could hack that? :) |
I am trying convert this kind of 3/4 levels of nested json into python dataframe with every attribute present in it. I am able to extract up to 2 levels. How can i do for rest? |
The text was updated successfully, but these errors were encountered: