You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently having some issues with the JSON to CSV --> my main objective is to create a flat file where hours, categories, and attributes are also completely flat (and looking at the code, it seems like that is the intent of the script). However, running the code provided, the categories, attributes, and hours are still in nested form as opposed to creating new columns for each category/binary for each row.
Here's a summary of output:
With respect to the script, I'm using exactly what's given here (except hard coded file path instead of taking it as an input).
Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered:
Did you figure out how to flatten these data frames? The JSON files have extra quotations around those data frames, and when I read them into to R using jsonlite::stream_in, they are read as characters, not data frames.
Hi all,
I'm currently having some issues with the JSON to CSV --> my main objective is to create a flat file where hours, categories, and attributes are also completely flat (and looking at the code, it seems like that is the intent of the script). However, running the code provided, the categories, attributes, and hours are still in nested form as opposed to creating new columns for each category/binary for each row.
Here's a summary of output:
With respect to the script, I'm using exactly what's given here (except hard coded file path instead of taking it as an input).
Any advice would be greatly appreciated!
The text was updated successfully, but these errors were encountered: