cannot flatten arrays of numbers
See original GitHub issueprint flatten_json.unflatten(flatten_json.flatten({'data' : [2]}))
:
{'data': {'0': 2}}
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Array.prototype.flat() - JavaScript - MDN Web Docs
The flat() method creates a new array with all sub-array elements concatenated into it recursively up to the specified depth.
Read more >How to flatten nested array in javascript? - Stack Overflow
So to flatten an array of arbitrary depth, just call flat method with Infinity . This could be made a bit faster by...
Read more >How to flatten arrays, especially for plotting - Awkward Array
There are two functions that are responsible for flattening arrays: ak.flatten() with axis=None ; and ak.ravel() ; but you don't want to ...
Read more >Solving the Misery of Flattening and Array Algorithm | Recursion
Write a function that flattens an Array of Array objects into a flat Array. Our function must flatten any given array input The...
Read more >Array Flattening · Problem Solving for Coding interviews
Write a function that flattens an Array of Array objects into a flat Array. Your function must only do one level of flattening....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@EmSyndio just released
v0.1.6
. Trypip install flatten_json --upgrade
and let me know if the issue is fixed.@noblige,
unflatten_list
, handles data with flattened lists