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
print(StructureTest['a'].values[0])
print(type(StructureTest['a'].values[0]))
print(StructureTest['a'].values[0]['z']['w']) # <===== This is the line in the tutorial that fails
{"x":1,"y":2,"z":{"w":"hello","v":"world"}}
<class 'str'>
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-14-dbaa4016c4ed> in <module>()
2 print(StructureTest['a'].values[0])
3 print(type(StructureTest['a'].values[0]))
----> 4 print(StructureTest['a'].values[0]['z']['w'])
TypeError: string indices must be integers
The text was updated successfully, but these errors were encountered:
Yes, that's right. I'm afraid it will have to stay this way for a while.
SQLite treats jsons as strings and there is no robust way to differentiate string from object.
We will need to explain it in documentation though.
The text was updated successfully, but these errors were encountered: