I have a large CSV with which has several columns and one of the column is address column. In another CSV the address with latitude and longitude are given. I want to match the address and pull the latitude and longitude and write in my first large csv.
I did try using pandas join and merge but they merge with index column and I need to search the address in the address csv and then pull the lat-lon to large csv and create two new columns.
I found some similar question but that is Ruby :Here: I want to work with Python and Pandas
Large.csv
col1, col2, col3, col4, col5, col6, addr
234, 453,34535,342,634,636, Ken street
562, 345,6753,835,864,967,St Pauls
addr.csv
addr,lat,lon
baker street, lat1, lon1
ken street, lat2,lon2
paul street, lat3, lon3
St Pauls, lat4, lon4
Ouput.csv
col1, col2, col3, col4, col5, col6, addr, lat, lon
234, 453,34535,342,634,636, Ken street,lat2,lon2
562, 345,6753,835,864,967,St Pauls,lat4,lon4
The input file is too large to load in an Excel sheet and make a Vlookup What could be the simplest way to achieve the output.
I am using python 3.x version and Updated version of Pandas Every Help is appreciated Thanks in advance