Last active
January 5, 2022 18:50
-
-
Save Quenty/74156dcc4e21d341ce52da14a701c40c to your computer and use it in GitHub Desktop.
State name to abbreviation python dictionary
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
statename_to_abbr = { | |
# Other | |
'District of Columbia': 'DC', | |
# States | |
'Alabama': 'AL', | |
'Montana': 'MT', | |
'Alaska': 'AK', | |
'Nebraska': 'NE', | |
'Arizona': 'AZ', | |
'Nevada': 'NV', | |
'Arkansas': 'AR', | |
'New Hampshire': 'NH', | |
'California': 'CA', | |
'New Jersey': 'NJ', | |
'Colorado': 'CO', | |
'New Mexico': 'NM', | |
'Connecticut': 'CT', | |
'New York': 'NY', | |
'Delaware': 'DE', | |
'North Carolina': 'NC', | |
'Florida': 'FL', | |
'North Dakota': 'ND', | |
'Georgia': 'GA', | |
'Ohio': 'OH', | |
'Hawaii': 'HI', | |
'Oklahoma': 'OK', | |
'Idaho': 'ID', | |
'Oregon': 'OR', | |
'Illinois': 'IL', | |
'Pennsylvania': 'PA', | |
'Indiana': 'IN', | |
'Rhode Island': 'RI', | |
'Iowa': 'IA', | |
'South Carolina': 'SC', | |
'Kansas': 'KS', | |
'South Dakota': 'SD', | |
'Kentucky': 'KY', | |
'Tennessee': 'TN', | |
'Louisiana': 'LA', | |
'Texas': 'TX', | |
'Maine': 'ME', | |
'Utah': 'UT', | |
'Maryland': 'MD', | |
'Vermont': 'VT', | |
'Massachusetts': 'MA', | |
'Virginia': 'VA', | |
'Michigan': 'MI', | |
'Washington': 'WA', | |
'Minnesota': 'MN', | |
'West Virginia': 'WV', | |
'Mississippi': 'MS', | |
'Wisconsin': 'WI', | |
'Missouri': 'MO', | |
'Wyoming': 'WY', | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you! Saved my time :)