Here is the sample list given, I am using the Python 3, and want to create the same list from the given panda's DataFrame from two columns Latitude and Longitude, but I don't want to use the For Loop, want to do with the Pandas
function.
coordinates = [
[ 42.3581 , -71.0636 ],
[ 42.82995815, -74.78991444],
[ 43.17929819, -78.56603306],
[ 43.40320216, -82.37774519],
[ 43.49975489, -86.20965845],
[ 43.46811941, -90.04569087],
[ 43.30857071, -93.86961818],
[ 43.02248456, -97.66563267],
[ 42.61228259, -101.41886832],
[ 42.08133868, -105.11585198],
[ 41.4338549 , -108.74485069],
[ 40.67471747, -112.29609954],
[ 39.8093434 , -115.76190821],
[ 38.84352776, -119.13665678],
[ 37.7833 , -122.4167 ]]
but I want it without using the for loop, is it possible with any Panda's function? or python function.
I hope this is clear now, for those people who said its not clear question.