Skip to content

Commit 1523879

Browse files
committed
changed txt to csv
1 parent efbb07e commit 1523879

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

_delphi_utils_python/data_proc/geomap/geo_data_proc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
FIPS_POPULATION_URL = f"https://www2.census.gov/programs-surveys/popest/datasets/2010-{YEAR}/counties/totals/co-est{YEAR}-alldata.csv"
3333
FIPS_PUERTO_RICO_POPULATION_URL = "https://www2.census.gov/geo/docs/maps-data/data/rel/zcta_county_rel_10.txt?"
3434
STATE_HHS_FILE = "hhs.txt"
35-
ZIP_POP_MISSING_FILE = "zip_pop_filling.txt"
35+
ZIP_POP_MISSING_FILE = "zip_pop_filling.csv"
3636

3737
# Out files
3838
FIPS_STATE_OUT_FILENAME = "fips_state_table.csv"
@@ -368,7 +368,7 @@ def derive_zip_population_table():
368368
df = df.drop(columns=["fips", "weight"]).groupby("zip").sum().dropna().reset_index()
369369

370370
## loading populatoin of some zips- #Issue 0648
371-
zip_pop_missing = pd.read_table(
371+
zip_pop_missing = pd.read_csv(
372372
ZIP_POP_MISSING_FILE,sep=",",
373373
dtype={"zip":str,"pop":np.int32}
374374
)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
zip,pop
2+
57756,1126
3+
57764,1923
4+
57770,5271
5+
57772,2048
6+
57794,644
7+
99554,677
8+
99563,938
9+
99566,192
10+
99573,1115
11+
99574,2348
12+
99581,762
13+
99585,417
14+
99586,605
15+
99604,1093
16+
99620,577
17+
99632,813
18+
99650,568
19+
99657,329
20+
99658,616
21+
99662,480
22+
99666,189
23+
99677,88
24+
99686,4005
25+
99693,248

0 commit comments

Comments
 (0)