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've noticed that when a numpy array is present as a dictionary value, flatten() throws the following:
File "myfile.py", line 452, in myfunc
flattened = flatten(x)
File "/anaconda2/lib/python2.7/site-packages/flatten_json.py", line 82, in flatten
_flatten(nested_dict, None)
File "/anaconda2/lib/python2.7/site-packages/flatten_json.py", line 74, in _flatten
object_key))
File "/anaconda2/lib/python2.7/site-packages/flatten_json.py", line 66, in _flatten
if not object_:
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()
This worked in 0.1.6. Any ideas what happened? Has some default changed? Is there a workaround? Thanks
The text was updated successfully, but these errors were encountered:
Such a useful module - thank you.
I've noticed that when a numpy array is present as a dictionary value,
flatten()
throws the following:This worked in 0.1.6. Any ideas what happened? Has some default changed? Is there a workaround? Thanks
The text was updated successfully, but these errors were encountered: