-
Notifications
You must be signed in to change notification settings - Fork 38
/
fips_helpers.py
64 lines (62 loc) · 1.52 KB
/
fips_helpers.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Helper functions related to USA states and counties.
# Change US state names to abbreviations.
# Note that Python dicts are case sensitive, so input should be in upper case.
us_state_to_abbrev = {
"ALABAMA": "AL",
"ALASKA": "AK",
"ARIZONA": "AZ",
"ARKANSAS": "AR",
"CALIFORNIA": "CA",
"COLORADO": "CO",
"CONNECTICUT": "CT",
"DELAWARE": "DE",
"FLORIDA": "FL",
"GEORGIA": "GA",
"HAWAII": "HI",
"IDAHO": "ID",
"ILLINOIS": "IL",
"INDIANA": "IN",
"IOWA": "IA",
"KANSAS": "KS",
"KENTUCKY": "KY",
"LOUISIANA": "LA",
"MAINE": "ME",
"MARYLAND": "MD",
"MASSACHUSETTS": "MA",
"MICHIGAN": "MI",
"MINNESOTA": "MN",
"MISSISSIPPI": "MS",
"MISSOURI": "MO",
"MONTANA": "MT",
"NEBRASKA": "NE",
"NEVADA": "NV",
"NEW HAMPSHIRE": "NH",
"NEW JERSEY": "NJ",
"NEW MEXICO": "NM",
"NEW YORK": "NY",
"NORTH CAROLINA": "NC",
"NORTH DAKOTA": "ND",
"OHIO": "OH",
"OKLAHOMA": "OK",
"OREGON": "OR",
"PENNSYLVANIA": "PA",
"RHODE ISLAND": "RI",
"SOUTH CAROLINA": "SC",
"SOUTH DAKOTA": "SD",
"TENNESSEE": "TN",
"TEXAS": "TX",
"UTAH": "UT",
"VERMONT": "VT",
"VIRGINIA": "VA",
"WASHINGTON": "WA",
"WEST VIRGINIA": "WV",
"WISCONSIN": "WI",
"WYOMING": "WY",
"DISTRICT OF COLUMBIA": "DC",
"AMERICAN SAMOA": "AS",
"GUAM": "GU",
"NORTHERN MARIANA ISLANDS": "MP",
"PUERTO RICO": "PR",
"UNITED STATES MINOR OUTLYING ISLANDS": "UM",
"U.S. VIRGIN ISLANDS": "VI"
}