Merge two lists to create a list which contains items of the two lists as lists
I'm not quite sure if I'm understanding your question correctly, but if you want to match the two arrays, just do:
name = [array1, array2]
I would like to merge two lists:
lon: [14.21055347, 14.21055347, 16.39356558, 16.39356558, 14.21055347]
lat: [48.22824817, 48.22824817, 48.18617251, 48.18617251, 47.65823679]
to get:
coordinates: [[14.21055347, 48.22824817], [14.21055347, 48.22824817], [16.39356558, 48.18617251], [16.39356558, 48.18617251], [14.21055347, 47.65823679]]
How is this done efficiently for very long lists of lon/lat?
Thanks for your help!