I have a .csv file with two columns of interest 'latitude' and 'longitude' with populated values
I would like to return [latitude, longitude] pairs of each row from the two columns as lists...
[10.222, 20.445] [10.2555, 20.119] ... and so forth for each row of my csv...
The problem with > import pandas colnames = [ 'latitude', 'longitude'] data = pandas.read_csv('path_name.csv', names=colnames)
latitude = data.latitude.tolist()
longitude = data.longitude.tolist()
is that it creates two lists for all the values each latitude and longitude column
How can I create lists for each latitude, longitude pair in python ?