Hey @lewtun, thanks for pointing me in the right direction! Only now I get the following error: TypeError: list indices must be integers or slices, not str. I get the gist of this error but I don’t understand why it shows up here, seeing as I’m not doing anything crazy.
TypeError                                 Traceback (most recent call last)
/var/folders/yb/0cqx_6j50191l1m_p9p30gbw0000gn/T/ipykernel_13798/3502567035.py in <module>
     16                 question = qa["question"]
     17                 idx = qa["id"]
---> 18                 answers["text"] = [a["text"] for a in qa["answers"]]
     19                 answers["answer_start"] = [a["answer_start"] for a in qa["answers"]]
     20                 f.write(

/var/folders/yb/0cqx_6j50191l1m_p9p30gbw0000gn/T/ipykernel_13798/3502567035.py in <listcomp>(.0)
     16                 question = qa["question"]
     17                 idx = qa["id"]
---> 18                 answers["text"] = [a["text"] for a in qa["answers"]]
     19                 answers["answer_start"] = [a["answer_start"] for a in qa["answers"]]
     20                 f.write(

TypeError: list indices must be integers or slices, not str