Thursday, April 17, 2014

ICPSR Congressional Member IDs in Python

Keith Poole and Howard Rosenthal have put together the authoritative list of Congressmen's member IDs, which they make available here at voteview.com.

To make using it from python a bit easier, I wrote a simple file to read in the files, as well as to map parties and state IDs to names. I provide it below in case it proves useful to others!


Note that the script includes python-usable versions of: mappings from ICPSR state IDs to state abbreviations and state names, AND mappings from Political Party IDs to Party Names, which may be useful in their own right.

Edit: Updated link to a new host.

No comments:

Post a Comment