I would like to convert CSV file into list of dicts. For example I have a CSV file which has a data in following order:
name,hobby,age
Sammy,football,6
Angela,chess,12
and the output should look like this:
[
{"name": "Sammy", "hobby": "football", "age": "6"},
{"name": "Angela", "hobby": "chess", "age": "12"}
]
Do you have any suggestions how to do it?