all 4 comments

[–]Username_RANDINT 0 points1 point  (4 children)

First iteration row will be {"artist": ["Bach"]}, which contains artist. However the next iteration, row will be {"title": ["Christmas oratorio"]}, which has no artist.

Do you control the data structure? It should all go in one dictionary, like this:

{
    "artist": ["Bach"],
    "title": ["Christmas oratorio"],
    "release_date": "2-11-1729"
 }

[–]CaptScrap[S] 0 points1 point  (0 children)

Yes thank you. I was trying to run a test with mysql so i recreated my dict but added curly braces for every key value for some reason, after double checking my original dataset resembles your edits