这应该很容易,但我就是搞不定。我有一个包含lon和lat列的数据框,我想创建一个列表,其中包含成对的lon和lat值。
数据框如下所示:
我需要一个类似这样的列表:
数据框如下所示:
amenity name lat lon
0 school George Bath Elementary School 40.722452 -75.386650
1 school Dana L Lyon Elementary School 42.337774 -77.317131
2 school Bath Village School 44.168952 -71.963701
3 school Bath School 35.476832 -76.811605
4 school Hyde School 43.905080 -69.822825
我需要一个类似这样的列表:
[(40.722452, -75.386650), (42.337774, -77.317131), (44.168952, -71.963701)...]