Skip to content

Fips/Zip crosswalk has more zip codes than zip population file #648

Closed
@chinandrew

Description

@chinandrew
In [2]: f_z = pd.read_csv("delphi_utils/data/fips_zip_table.csv", dtype = str)                                                                                       

In [3]: zpop = pd.read_csv("delphi_utils/data/zip_pop.csv", dtype = str)                                                                                             

In [4]: len(set(f_z.zip))                                                                                                                                            
Out[4]: 32976

In [5]: len(set(zpop.zip))                                                                                                                                           
Out[5]: 32959

In [6]: set(f_z.zip) - set(zpop.zip)                                                                                                                                 
Out[6]: 
{'57756',
 '57764',
 '57770',
 '57772',
 '57794',
 '99554',
 '99563',
 '99581',
 '99585',
 '99604',
 '99620',
 '99632',
 '99650',
 '99657',
 '99658',
 '99662',
 '99666'}

In [7]: set(zpop.zip) - set(f_z.zip)                                                                                                                                 
Out[7]: set()

Those appear to be real zips, unsure why discrepancy exists.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions