Skip to content

CSV for all served terms (i.e. one row per (legislator, term served)) #662

@nrjones8

Description

@nrjones8

First of all, thanks so much for making and maintaining this data!

I was wondering if you all would be open to adding another csv that would be generated based on the existing legislators-current.yaml and legislators-historical.yaml files. Right now, those files contain more detailed term information than the CSV versions do - which makes sense since the number of terms served by any given legislator can vary, making it hard to put that data into the existing one-row-per-legislator CSV.

I'm wondering if you'd be open to creating a new csv that includes term start/end information for every term served by every legislator? It would look something like this:

bioguide_id,office_type,congress_number,start_date,end_date
B000226,sen,1,1789-03-04,1793-03-03
B000546,rep,1,1789-03-04,1791-03-03
B001086,rep,1,1789-03-04,1791-03-03
C000187,rep,1,1789-03-04,1791-03-03
...
V000119,rep,76,1939-01-03,1941-01-03
V000119,rep,77,1941-01-03,1943-01-03
...

so the same legislator can appear multiple times (one time per term served). This would allow people to more easily do analyses on all of the members for a given Congress number (i.e. grab all the bioguide_ids for a given Congress number, then join those IDs to the legislators-historical.csv file.

I created a quick prototype (not ready for review, wanted to see if you all were open to the idea first) to give an idea of what I mean: nrjones8@0e83389

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions