Skip to content

iph-dtc/geocoding_frame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geocoding_frame

Usage


Import and initialize AddressFrame with declared fields.

import pandas as pd
from address_frame import AddressFrame
df = pd.read_csv('../data/test_adds.csv')
adf = AddressFrame(df, 'address', 'city', 'state', 'zipcode')

Clean and geocode the dataset.

adf.clean_streets().clean_cities().clean_zips() # optional
adf.geocode(geo_report=True) # set geo_report=True to print out short report after geocoding (could go to logs eventually)

Dataset will have geo field, and lat/lon.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages