I have a CSV with the first row as the headers:
location_id name latitude longitude
I have then 10k rows of data. Latitude and Longitude are numbers
I need my output to look like that:
[
{
"location_id":"foo",
"name":"bar",
"latitude":28.55323,
"longitude":-81.28482,
"geo":{
"__type": "GeoPoint",
"latitude": 28.55323,
"longitude": -81.28482
}
},
....
]
How can I do that in Python by writing a script? I'm using Python for Windows