Skip to content

Commit

Permalink
comments added
Browse files Browse the repository at this point in the history
  • Loading branch information
ladew222 committed Oct 5, 2022
1 parent f047a23 commit 9b01195
Show file tree
Hide file tree
Showing 5 changed files with 9,263 additions and 46 deletions.
4 changes: 2 additions & 2 deletions final.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def find_nearest(in_row):
distances = df.apply(
lambda row: dist(in_row['lat'], in_row['lon'], row['lat'], row['lon']),
axis=1)
return df.loc[distances.idxmin(), 'location']
return df.loc[distances.idxmin(), 'area_name']


#can only do 24 series at a time
Expand Down Expand Up @@ -225,7 +225,7 @@ def main():
GetBLS = True # get all_counties.csv
if GetBLS ==True:
bls_areas = geocode_bls_areas()
bls_areas.to_csv('./output/bls_areas.csv"')
bls_areas.to_csv('./output/bls_areas.csv')
else:
bls_areas = pd.read_csv("./output/bls_ares.csv")

Expand Down
Loading

0 comments on commit 9b01195

Please sign in to comment.