I have a pandas dataframe with two columns
Lat Long
0 53.0294 53.3256
1 13.6363 63.3632
2 22.5353 55.2201
...
Now I need json file to be perfect for use it for Google Map API.
To look like this:
[{"Lat": "45.496275", "Long": "19.700225"}
{"Lat": "43.9332040422", "Long": "21.3821478025"}
{"Lat": "43.7236250523", "Long": "20.6935022429"}]
I have tried with this:
out = coord_frame.to_json(orient='records')
Ang get this:
[{\"Lat\":44.8242557024,\"Long\":20.4048512901},{\"Lat\":44.8242557024,\"Long\":20.4048512901}]
I don't need those slashes and I'm not sure if I can use this in javascript code of Google Map API.
df.to_dict('r')?