Member-only story
State Name To State Abbreviation Crosswalks
For the millionth time I’ve had to crosswalk state names to state abbreviations.
Overview
As a data scientist, researcher, or data practitioner of any sort you have or will eventually have a dataset that lists state names. But, you’re going to need the state abbreviation. Or maybe it is the other way around.
For beginners, or even for intermediate data wonks, this can be a tricky and cumbersome task. I’m taking a moment to share a quick (and easily applied in many use cases) hack that solves this problem.
Cautions
- This code will only work as long as the good clerk of courts in charge of clerk.org keeps the html table in place. Also that this table remains the first table available from the specified location.
- This code will only work if the table at…