How to create dataset from CSV to training Question answering?

You should be able to parse the second pattern with:

pd.read_csv(..., converters={"answers": lambda x: json.loads(x)})

1 Like