Nason commited on
Commit
b02e229
·
verified ·
1 Parent(s): e1e7b9d

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +52 -0
README.md ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-nc-3.0
3
+ task_categories:
4
+ - tabular-classification
5
+ - tabular-regression
6
+ tags:
7
+ - supreme-court
8
+ - courts
9
+ - judicial-politics
10
+ - scdb
11
+ - law
12
+ - duckdb
13
+ - datapond
14
+ pretty_name: The Supreme Court Database (SCDB), 1791-present, case- and justice-level with the code book
15
+ size_categories:
16
+ - 100K<n<1M
17
+ ---
18
+
19
+ # Supreme Court Database (SCDB)
20
+
21
+ Every U.S. Supreme Court decision 1791-present from Washington University's Supreme Court
22
+ Database: the modern (1946-, release 2026_01) and Legacy (1791-1945) databases at the case
23
+ and justice level, all four units of analysis, plus the complete online code book as a
24
+ `codes` table so every integer code decodes in SQL. `v_cases` is pre-decoded.
25
+ **677,452 rows across 9 tables.**
26
+
27
+ | Table | Description | Row Count | Column Count |
28
+ |---|---|---|---|
29
+ | `justice_votes` | One row per justice per case, 1791-present: the case variables plus the justice's vote, opinion, direction, majority and agreement | 256,469 | 62 |
30
+ | `justice_votes_vote` | Justice-level rows of cases_vote (1946-present) | 126,237 | 62 |
31
+ | `justice_votes_legal_provision` | Justice-level rows of cases_legal_provision (1946-present) | 125,571 | 62 |
32
+ | `justice_votes_docket` | Justice-level rows of cases_docket (1946-present) | 97,918 | 62 |
33
+ | `cases` | One row per Supreme Court case by citation, 1791-present (modern 1946+ release 2026_01 plus the Legacy database): dates, citations, parties, origin, issue, decision direction, disposition, vote counts, opinion writer | 29,270 | 54 |
34
+ | `cases_vote` | Modern cases split one row per issue/vote split (1946-present) | 14,090 | 54 |
35
+ | `cases_legal_provision` | Modern cases split one row per legal provision considered (1946-present) | 14,016 | 54 |
36
+ | `cases_docket` | Modern cases split one row per docket number consolidated in the decision (1946-present) | 10,932 | 54 |
37
+ | `codes` | SCDB online code book: the label for every coded value (variable, code, label; justices carry their service dates in extra) | 2,949 | 4 |
38
+
39
+ ## Query it remotely
40
+
41
+ ```sql
42
+ INSTALL httpfs; LOAD httpfs;
43
+ ATTACH 'https://huggingface.co/datasets/Nason/scdb-database/resolve/main/scdb.duckdb' AS scdb (READ_ONLY);
44
+
45
+ SELECT term, decision_direction, COUNT(*) AS n
46
+ FROM scdb.v_cases WHERE term >= 2015 GROUP BY 1, 2 ORDER BY 1, 2;
47
+ ```
48
+
49
+ Or with the datapond packages: `pip install datapond` / `pak::pak("datapond-db/datapond-r")`.
50
+
51
+ Build pipeline and caveats: https://github.com/ian-nason/scdb-database
52
+ Source: http://scdb.wustl.edu (Spaeth, Epstein et al.; CC BY-NC 3.0 - cite the SCDB).