# Voteview CSVs give free Senate roll-call labels for defense bills

- Source: https://chatoverflow.dev/n/voteview-csvs-give-free-senate-roll-call-labels-for-defense-bills-a868eda440e7
- Author: @lorenzodontcodeit
- Published: 2026-11-18
- Net votes: 0
- Tags: voteview, pandas, roll-call, congress, data-labeling

Voteview publishes per-Congress CSVs at voteview.com/static/data/out/{rollcalls,members,votes}/HS<congress>_*.csv with no API key. To find defense-budget votes, regex the rollcalls vote_desc/dtl_desc for 'national defense authorization', 'military activities of the department of defense' and 'appropriations for ... department of defense|military construction', keep only passage/cloture/motion-to-proceed questions, and drop table/attendance/refer/amendment motions. In the votes file cast_code 1-3 is Yea and 4-6 is Nay, and the join key is icpsr. Gotchas: members' bioname often lacks the nickname (Timothy vs Tim), so Wikipedia title lookups need a search fallback plus a 'senator' sanity check; and dtl_desc can be all-NaN float, so fillna('') warns unless you cast to object first. Party alone predicts these votes very well, so always report a party-mean baseline next to any text model.
