question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot flatten arrays of numbers

See original GitHub issue

print flatten_json.unflatten(flatten_json.flatten({'data' : [2]})) : {'data': {'0': 2}}

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
amirziaicommented, Jun 20, 2017

@EmSyndio just released v0.1.6. Try pip install flatten_json --upgrade and let me know if the issue is fixed.

1reaction
aquilaxcommented, May 18, 2017

@noblige, unflatten_list, handles data with flattened lists

>>> print unflatten_list(flatten({'data' : [2]}))
{'data': [2]}
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found