Dataset Viewer

The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.

Supreme Court Database (SCDB)

Coded U.S. Supreme Court decisions and individual justices’ votes from the Supreme Court Database, combining the 1791–1945 legacy files with modern release 2026_01. Start with v_cases for labelled case-level analysis or justice_votes for voting records. Alternative docket, legal-provision and vote-split tables repeat aspects of the same decisions; do not add them together as additional cases.

Start querying

Show five Supreme Court case records from the 2020 term onward, with the case ID, term and recorded decision direction. The rows come from the case-level view, rather than the separate justice-vote tables.

term identifies the Supreme Court term. decision_direction is SCDB’s classification of the decision, shown as a label by v_cases.

Choose R or Python. Install datapond once: use install.packages("datapond") in R, or run python -m pip install datapond in a terminal.

R

library(datapond)
con <- dp_connect("scdb")
tryCatch({
  DBI::dbExecute(con, "SET threads=1")
  DBI::dbExecute(con, "SET memory_limit='128MiB'")
  DBI::dbExecute(con, "SET max_temp_directory_size='0B'")
  print(DBI::dbGetQuery(con, "SELECT caseId,term,decision_direction FROM v_cases WHERE term>=2020 ORDER BY caseId LIMIT 5"))
}, finally = dp_disconnect(con))

Python

import datapond
con = datapond.connect('scdb')
try:
    con.execute("SET threads=1")
    con.execute("SET memory_limit='128MiB'")
    con.execute("SET max_temp_directory_size='0B'")
    print(con.execute("""SELECT caseId,term,decision_direction FROM v_cases WHERE term>=2020 ORDER BY caseId LIMIT 5""").fetchall())
finally:
    con.close()

Queries run on your computer and read the byte ranges they need. A small result can still require a large scan. These examples limit DuckDB to one thread and a 128 MiB buffer pool with disk spill disabled; that is not a limit on the entire R or Python process. Larger analyses may need more memory or a local download with enough disk space.

Tables, fields and joins

See the data dictionary for column definitions.

677,452 rows across 9 tables. Start with v_cases, the decoded case-level view, or justice_votes for one row per justice and case.

Table Description Row Count Column Count
cases One row per Supreme Court case by citation, 1791-2025 terms (modern 1946+ release 2026_01 plus the Legacy database): dates, citations, parties, origin, issue, decision direction, disposition, vote counts, opinion writer 29,270 54
justice_votes One row per justice per case, 1791-2025 terms: the case variables plus the justice's vote, opinion, direction, majority and agreement 256,469 62
cases_docket Modern cases split one row per docket number consolidated in the decision (1946-2025 terms) 10,932 54
cases_legal_provision Modern cases split one row per legal provision considered (1946-2025 terms) 14,016 54
cases_vote Modern cases split one row per issue/vote split (1946-2025 terms) 14,090 54
justice_votes_docket Justice-level rows of cases_docket (1946-2025 terms) 97,918 62
justice_votes_legal_provision Justice-level rows of cases_legal_provision (1946-2025 terms) 125,571 62
justice_votes_vote Justice-level rows of cases_vote (1946-2025 terms) 126,237 62
codes SCDB online code book: the label for every coded value (variable, code, label; justices carry their service dates in extra) 2,949 4

database says modern or legacy on every row. Keys: caseId (term-number), docketId, caseIssuesId, voteId, justice. v_cases is cases with issue area, issue, decision direction, decision type, winning party and opinion writer decoded. Columns and null rates: DICTIONARY.md; variable definitions: the online code book.

Researcher caveats

  • Units of analysis. The SCDB publishes the same cases four ways (by citation, docket, legal provision, vote split). cases and justice_votes are the citation-level files most analyses use; the split tables repeat case variables across their rows, so do not add them.
  • Codes are integers; labels live in codes. Justice ids, issue codes (278), parties (311), lower-court dispositions and so on are all there. -99 in justice_votes.justice is the SCDB's own "unknown" in a few legacy rows.
  • Legacy vs modern. The Legacy database has the two citation-level units only, and its justice-centered file carries 25 cases (1896-1931) that its case-centered file lacks; they are kept as published. Some variables are coded less completely before 1946.

Dates are stored as DATE; the source uses m/d/yyyy.

Other ways to connect: direct DuckDB SQL

This direct example does not set resource limits; the first R/Python examples above do.

This alternative uses a DuckDB SQL client and the scdb catalog alias to count cases by term and recorded decision direction. It is not another required setup step; the datapond route is above.

INSTALL httpfs; LOAD httpfs;
ATTACH 'https://huggingface.co/datasets/Nason/scdb-database/resolve/main/scdb.duckdb' AS scdb (READ_ONLY);

SELECT term, decision_direction, COUNT(*) AS n
FROM scdb.v_cases WHERE term >= 2015 GROUP BY 1, 2 ORDER BY 1, 2;

Sources and maintenance

Sources, license and build

Source: The Supreme Court Database (Washington University in St. Louis). License: CC BY-NC 3.0.

Build pipeline and caveats: https://github.com/ian-nason/scdb-database Source: http://scdb.wustl.edu (Spaeth, Epstein et al.; CC BY-NC 3.0 - cite the SCDB).

R with DBI and duckdb

Install the dependencies once with install.packages(c("DBI", "duckdb")).

library(DBI)
con <- dbConnect(duckdb::duckdb())
dbExecute(con, "INSTALL httpfs")
dbExecute(con, "LOAD httpfs")
dbExecute(con, "ATTACH 'https://huggingface.co/datasets/Nason/scdb-database/resolve/main/scdb.duckdb' AS scdb (READ_ONLY)")
dbGetQuery(con, "SELECT term, decision_direction FROM scdb.v_cases LIMIT 5")
dbDisconnect(con, shutdown = TRUE)

DuckDB uses HTTP range requests; queries run on your machine and may need substantial memory or download data. A LIMIT does not guarantee a small scan.

Or with the datapond packages: pip install datapond / pak::pak("datapond-db/datapond-r").

Build pipeline and caveats: https://github.com/ian-nason/scdb-database Source: http://scdb.wustl.edu (Spaeth, Epstein et al.; CC BY-NC 3.0 - cite the SCDB).

Downloads last month
123