Inspect the data in Google sheets (Beta)
These links open election returns online in spreadsheet form.
Basic instructions: To use this feature, you must first log into a Google account. Then click the desired file's link below, and confirm you wish a copy. A Google spreadsheet will open in your browser. In order to inspect the data (eg. re-sorting rows by state or year), manipulate it according to your needs (eg. keeping a subset of the observations only), or saving the file to your hard drive, you must first type CTRL+A (ie., select all) then CTRL+SHIFT+V (ie., paste values only) — this will unlink the data from the repository.
Data updates every hour. If a refresh were needed sooner, erase the function in cell A1 and undo the change.
1 STATE-LEVEL RETURNS
2 FEDERAL DISTRICT-LEVEL RETURNS
3 MUNICIPIO-LEVEL RETURNS
3.1 Municipal elections 1970-on (coalitions aggregated by candidate)
3.2 Municipal elections 1970-on (coalitions split by party)
3.3 Municipal election winners 1989-on (incumbent municipal presidents)
Note: data split in two groups of states to comply with Google's maximum spreadsheet size (400k cells); files have identical columns, so can be easily appended outside Google drive.