python read a DF of id and json data launchid,infmquery 13446692,12758751475,"{""attr"":…
- User
python
read a DF of id and json data
launch_id,infmquery 13446692,12758751475,"{""attr"": {""100003"": 750, ""110659"": 457686, ""110661"": 457694, ""110665"": [457911], ""110693"": 470019, ""114157"": 1173831, ""711"": 10115, ""712"": 15868, ""827"": 11904}, ""category"": 111}" 13446692,"{""attr"": {""110056"": 418152, ""110431"": 431863, ""114224"": 1181560, ""114280"": 1185902, ""118633"": 2262830, ""2811"": 19989, ""5"": 19, ""709"": 10048, ""731"": 10323, ""732"": 10344, ""733"": 10361, ""734"": 10375}, ""category"": 222}"
from infmquery save pairs of id:value 1st 2nd, 2nd 3rd, 3rd 4th, etc and save to new DF
launch_id, pair
in pair transform value to base64
example
""100003"": 750 -- > ""100003"": NzUw
ValueError: cannot reindex on an axis with duplicate labels!
fix error
Also save for each row 'categoryID'
Also in a row save neighbour for value, also transform value to base64
for example
1st 2nd ""100003"": 750, ""110659"": 457686 ""110659"": 457686, ""110661"": 457694 ""5"": 19, ""709"": 10048
- Assistant
- User
JSONDecodeError: Expecting ':' delimiter: line 1 column 4 (char 3)
- Assistant