xames3 / d4g

MIT License
0 stars 0 forks source link

Parse input rows after reading from the CSV file #1

Open xames3 opened 15 hours ago

xames3 commented 15 hours ago

@sameera-g-mathad, you can try to do something like this:

output = {
    question: answers[values]
    for key, values in row.items()
    for question, answers in mapping[key].items()
}

but feel free to improvise the output.