Skip to content

Convert US state names to abbreviations using regular expressions

License

Notifications You must be signed in to change notification settings

LGDkobe24/statecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

3 Commits

Repository files navigation

Statecode

Convert US state names to state abbreviations using regular expressions.

Installation

Install as follows:

git clone https://github.com/vincentarelbundock/statecode cd statecode python setup.py install 

Example

Usage:

In [1]: from statecode import statecode In [2]: statecode(['Arizona', 'Utah']) Out[2]: ['AZ', 'UT'] In [3]: statecode(['AZ', 'UT'], origin='abbreviation', target='state') Out[3]: ['Arkansas', 'Utah'] 

About

Convert US state names to abbreviations using regular expressions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages