Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,108 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: odc-by
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: odc-by
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
tags:
|
| 6 |
+
- politics
|
| 7 |
+
- campaign-finance
|
| 8 |
+
- elections
|
| 9 |
+
- ideology
|
| 10 |
+
- united-states
|
| 11 |
+
- political-science
|
| 12 |
+
pretty_name: DIME - Database on Ideology, Money in Politics, and Elections (Parquet)
|
| 13 |
+
size_categories:
|
| 14 |
+
- 100M<n<1B
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# DIME: Database on Ideology, Money in Politics, and Elections (Parquet Format)
|
| 18 |
+
|
| 19 |
+
This dataset is a Parquet conversion of the [Database on Ideology, Money in Politics, and Elections (DIME)](https://data.stanford.edu/dime) Public version 4.0, originally compiled by Adam Bonica at Stanford University.
|
| 20 |
+
|
| 21 |
+
## Dataset Description
|
| 22 |
+
|
| 23 |
+
The DIME database provides a comprehensive resource for the study of campaign finance and ideology in American politics. It contains over **850 million itemized political contributions** made by individuals and organizations to local, state, and federal elections from 1979 to 2024.
|
| 24 |
+
|
| 25 |
+
### Key Features
|
| 26 |
+
|
| 27 |
+
- **Data Processing:** Names, addresses, occupation, and employer titles have been cleaned and standardized
|
| 28 |
+
- **Unique Identifiers:** Entity resolution assigns unique IDs for all donors, enabling tracking across election cycles and government levels
|
| 29 |
+
- **Geocoding:** Records are geocoded and placed into congressional districts
|
| 30 |
+
- **Ideological Measures:** Common-space DIME scores (CFscores) allow direct comparison of ideal points across political actors
|
| 31 |
+
- **Candidate/Committee Data:** Includes fundraising statistics, election outcomes, gender, and other characteristics
|
| 32 |
+
|
| 33 |
+
### Coverage
|
| 34 |
+
|
| 35 |
+
- **Time Span:** 1979-2024
|
| 36 |
+
- **Geographic Coverage:** United States (local, state, and federal elections)
|
| 37 |
+
- **Records:** 850M+ itemized contributions, 156K+ candidates, 37K+ committees, 36M+ individual donors
|
| 38 |
+
|
| 39 |
+
## Files
|
| 40 |
+
|
| 41 |
+
| File | Description |
|
| 42 |
+
|------|-------------|
|
| 43 |
+
| `recipients/` | Candidate and committee CFscores (1979-2024) |
|
| 44 |
+
| `contributors/` | Individual donor and PAC CFscores (1979-2024) |
|
| 45 |
+
| `contributions/` | Itemized contribution records by election cycle |
|
| 46 |
+
|
| 47 |
+
## Usage
|
| 48 |
+
|
| 49 |
+
```python
|
| 50 |
+
from datasets import load_dataset
|
| 51 |
+
|
| 52 |
+
# Load a specific subset
|
| 53 |
+
dataset = load_dataset("Dustinhax/dime", data_dir="contributions")
|
| 54 |
+
|
| 55 |
+
# Or use pandas/polars directly
|
| 56 |
+
import polars as pl
|
| 57 |
+
df = pl.read_parquet("hf://datasets/Dustinhax/dime/contributions/*.parquet")
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Source and License
|
| 61 |
+
|
| 62 |
+
This dataset is derived from the publicly available DIME database and is released under the [Open Data Commons Attribution License (ODC-BY 1.0)](https://opendatacommons.org/licenses/by/1.0/).
|
| 63 |
+
|
| 64 |
+
### You are free to:
|
| 65 |
+
|
| 66 |
+
- **Share:** Copy, distribute, and use the data
|
| 67 |
+
- **Create:** Produce works from the data
|
| 68 |
+
- **Adapt:** Modify, transform, and build upon the data
|
| 69 |
+
|
| 70 |
+
### As long as you:
|
| 71 |
+
|
| 72 |
+
- **Attribute:** You must attribute any public use of the data in the manner specified below
|
| 73 |
+
|
| 74 |
+
## Citation
|
| 75 |
+
|
| 76 |
+
If you use this dataset, please cite the original source:
|
| 77 |
+
|
| 78 |
+
```bibtex
|
| 79 |
+
@misc{bonica2024dime,
|
| 80 |
+
author = {Bonica, Adam},
|
| 81 |
+
title = {Database on Ideology, Money in Politics, and Elections: Public version 4.0},
|
| 82 |
+
year = {2024},
|
| 83 |
+
publisher = {Stanford University Libraries},
|
| 84 |
+
address = {Stanford, CA},
|
| 85 |
+
url = {https://data.stanford.edu/dime}
|
| 86 |
+
}
|
| 87 |
+
```
|
| 88 |
+
|
| 89 |
+
**Text citation:**
|
| 90 |
+
> Bonica, Adam. 2024. Database on Ideology, Money in Politics, and Elections: Public version 4.0 [Computer file]. Stanford, CA: Stanford University Libraries. https://data.stanford.edu/dime
|
| 91 |
+
|
| 92 |
+
## Additional Notes
|
| 93 |
+
|
| 94 |
+
- This Parquet conversion was created to improve query performance and reduce storage requirements compared to the original CSV format
|
| 95 |
+
- The itemized contribution records in this dataset exclude records retrieved from the Center for Responsive Politics/NIMSP database (consistent with the public release)
|
| 96 |
+
- For questions about the underlying data methodology, refer to the [DIME Codebook](https://bit.ly/dimeV4codebook)
|
| 97 |
+
- For validation of the ideological measures, see the [validation results compendium](https://www.dropbox.com/s/2ntrx9auzifgujp/dime_validation.pdf?dl=1)
|
| 98 |
+
|
| 99 |
+
## Contact
|
| 100 |
+
|
| 101 |
+
- **Original Data:** Adam Bonica (bonica@stanford.edu)
|
| 102 |
+
- **This Parquet Conversion:** [Your contact info]
|
| 103 |
+
|
| 104 |
+
## Related Resources
|
| 105 |
+
|
| 106 |
+
- [DIME Homepage](https://data.stanford.edu/dime)
|
| 107 |
+
- [DIME PLUS](https://data.stanford.edu/dime-plus) - Extended data on Congressional activity
|
| 108 |
+
- [Original Documentation](https://bit.ly/dimeV4codebook)
|