historical voting data

1 view
Skip to first unread message

didier deshommes

unread,
Aug 18, 2008, 11:32:29 PM8/18/08
to watchdog-...@googlegroups.com
Hi there,
I took a quick look at http://watchdog.jottit.com/volunteer and I
decided to write some quick code to parse historical voting data. The
code is here:

http://github.com/dfdeshom/watchdog/tree/master/import/parse/historical_voting.py

It parses all the files in /data/manual/rvdb/allYears/ and outputs one
dictionary for every line parsed, like so:

{'county_name': 'Autauga',
'dem_count': '1149',
'other_count': '89',
'rep_count': '1324',
'state': 'alabama',
'year': '1960'}

Comments, improvements and suggestions are welcome!

didier

Aaron Swartz

unread,
Aug 18, 2008, 11:40:03 PM8/18/08
to watchdog-...@googlegroups.com
> 'dem_count': '1149',
> 'other_count': '89',
> 'rep_count': '1324',

I assume these are thousands or something like that? Can we just
multiply by a 1000 for clarity?

didier deshommes

unread,
Aug 18, 2008, 11:48:26 PM8/18/08
to watchdog-...@googlegroups.com

No, these look like raw numbers to me.

didier


>
> >
>

Aaron Swartz

unread,
Sep 19, 2008, 4:44:46 PM9/19/08
to watchdog-...@googlegroups.com
> I took a quick look at http://watchdog.jottit.com/volunteer and I
> decided to write some quick code to parse historical voting data. The
> code is here:
>
> http://github.com/dfdeshom/watchdog/tree/master/import/parse/historical_voting.py

Thanks, and sorry for taking so long to get back to you on this. I
committed it with a few style changes:

http://github.com/aaronsw/watchdog/tree/2c1f934d14c9eb20b09a5d4657d1a4b674ffbb09/import/parse/rvdb.py

Reply all
Reply to author
Forward
0 new messages