Dataset Viewer
Auto-converted to Parquet Duplicate
id
int64
6
171k
case_number
large_stringlengths
11
11
name
large_stringlengths
6
40
attorney_type
large_stringclasses
15 values
6
CRI25000008
Sarah Hashemi
Public Defender
7
CRI25000008
Liliana Garcia
Public Defender
8
CRI25000008
Rachel Schneider
District Attorney
9
CRI25000012
MELISSA SHEILA LUBIN
Conflict Attorney
10
CRI25000012
Conflicts Counsel
Public Defender
11
CRI25000012
Diamond Ward
Public Defender
12
CRI25000012
Aaron Johnson
District Attorney
13
CRI25000012
Warren Henderson
District Attorney
14
CRI25000014
Michiko Yamamoto
Public Defender
15
CRI25000014
Corliss Brekken
District Attorney
16
CRI25000014
Albert Ujcic
District Attorney
17
CRI25000015
Samantha Phelan
District Attorney
18
CRI25000015
Donovan Campos-Coolbaugh
District Attorney
19
CRI25000015
Elly Leggatt
Public Defender
20
CRI25000015
Charlotte Halifax
Public Defender
21
CRI25000017
Eugene Frid
District Attorney
22
CRI25000017
Elliott Brooks
District Attorney
23
CRI25000017
Ashley Lee
District Attorney
24
CRI25000017
Gwendolyn West
District Attorney
25
CRI25000017
Aaron Pressman
Public Defender
26
CRI25000020
Eric Quandt
Public Defender
27
CRI25000020
Dennis Guzman
District Attorney
28
CRI25000021
DENNIS MICHAEL EDGEMON
Private Counsel
29
CRI25000021
Private Counsel
Public Defender
30
CRI25000021
MICHAEL FOLEY
District Attorney
31
CRI25000021
Lindsey Hom
District Attorney
32
CRI25000022
MICHAEL FOLEY
District Attorney
33
CRI25000022
Elly Leggatt
Public Defender
34
CRI25000023
Maximino Fuentes
Public Defender
35
CRI25000023
Ryan King
District Attorney
36
CRI25000024
Eden Schwartz
Public Defender
37
CRI25000026
Zain Qazi
District Attorney
38
CRI25000026
Adam Lipson
Public Defender
39
CRI25000028
Mary Polk
District Attorney
40
CRI25000028
Madison Boucher
District Attorney
41
CRI25000028
Milan Pavlic
Public Defender
42
CRI25000028
Bruce Calderon
Public Defender
43
CRI25000047
Nadia Iqbal
Public Defender
44
CRI25000047
Lisa Culbertson
District Attorney
45
CRI25000048
Ricky Herrera
District Attorney
46
CRI25000048
Michiko Yamamoto
Public Defender
47
CRI25000051
Madison Boucher
District Attorney
48
CRI25000051
Mary Polk
District Attorney
49
CRI25000051
Bruce Calderon
Public Defender
50
CRI25000051
Charlie Dickson
Public Defender
51
CRI25000056
Charlotte Miller
Public Defender
52
CRI25000056
Andre Guiulfo
District Attorney
53
CRI25000056
MICHAEL FOLEY
District Attorney
54
CRI25000059
Tal Klement
Public Defender
55
CRI25000059
Conflicts Counsel
Public Defender
56
CRI25000059
EAN VIZZI
Conflict Attorney
57
CRI25000059
Ahmanda Lee
District Attorney
58
CRI25000059
Amine Zreik
District Attorney
59
CRI25000059
Kirk Earl
District Attorney
60
CRI25000059
Sarah Quinones
District Attorney
63
CRI25000061
MICHAEL FOLEY
District Attorney
64
CRI25000061
Owen Nelson
District Attorney
65
CRI25000061
Conflicts Counsel
Public Defender
66
CRI25000061
CHRISTINA NICOLE IRIART
Conflict Attorney
70
CRI25003006
Adam Lipson
Public Defender
71
CRI25003006
Zain Qazi
District Attorney
72
CRI25000064
Gwendolyn West
District Attorney
73
CRI25000064
Madison Boucher
District Attorney
74
CRI25000064
Conflicts Counsel
Public Defender
75
CRI25000064
BERENICE QUIRINO
Conflict Attorney
76
CRI25006017
Zachary Waterman
Public Defender
77
CRI25006017
Angela Chan
Public Defender
78
CRI25006017
Jonathan Yang
District Attorney
79
CRI25006017
Jamal Anderson
District Attorney
80
CRI25006017
Negad Zaky
District Attorney
81
CRI25003015
James Filling
District Attorney
82
CRI25003015
Ondina LipneyBurger
Public Defender
83
CRI25003016
Christina Mickels
District Attorney
84
CRI25003016
Samantha Persaud
District Attorney
85
CRI25003016
Robert Miranda
District Attorney
86
CRI25003016
Tal Klement
Public Defender
87
CRI25000070
Erin Morgan
Public Defender
88
CRI25000070
Daniel Meyer
Public Defender
89
CRI25000070
John Robles
District Attorney
90
CRI25000070
Rachel Schneider
District Attorney
91
CRI25000070
Dennis Guzman
District Attorney
92
CRI25000070
Ricky Herrera
District Attorney
93
CRI25000071
Dennis Guzman
District Attorney
94
CRI25000071
John Robles
District Attorney
95
CRI25000071
Eugene Frid
District Attorney
96
CRI25000071
Dennis Guzman
District Attorney
97
CRI25000071
Tal Klement
Public Defender
98
CRI25000071
Adam Lipson
Public Defender
99
CRI25000075
Daniel Meyer
Public Defender
100
CRI25000075
Eric Fleischaker
Public Defender
101
CRI25000075
Kirk Earl
District Attorney
102
CRI25000075
Amine Zreik
District Attorney
103
CRI25000075
Pearl Tan
District Attorney
104
CRI25003022
Ricky Herrera
District Attorney
105
CRI25003022
Elizabeth Jimenez
District Attorney
106
CRI25003022
Latisha McCray
Public Defender
110
CRI25003024
Conflicts Counsel
Public Defender
111
CRI25003024
SILAS GENESON
Conflict Attorney
112
CRI25003024
Dennis Guzman
District Attorney
113
CRI25003024
Abigail Adams
District Attorney
End of preview. Expand in Data Studio

San Francisco Criminal Court Data

Linked criminal-court records for San Francisco County, combining scraped Superior Court docket data, District Attorney open-data feeds, and a charge-disposition spreadsheet that the Court produced only after sustained pressure under California Rules of Court rule 10.500.

Tables

File Rows Description
cases.parquet 77,406 Case-level records: case number, case ID, defendant name, filing date
register_of_actions.parquet 776,728 Docket entries (proceedings, filers, dates)
attorneys.parquet 72,289 Attorneys listed on each case and their role
calendar.parquet 318,993 Hearing dates, types, courtroom/department
da_arrests.parquet 176,130 DA arrest feed: booked charges, agency, crime type, DA action
da_prosecuted.parquet 120,827 DA prosecuted-case feed: filed charges, case status, DA action
sfsc_case_matches.parquet 13,790 Deterministic-inferred matches linking anonymized Court IDs to public case numbers
sfsc_charge_dispositions.parquet 44,029 Charge-level dispositions, sentences, and probation/jail/prison days
judicial_assignment_sources.parquet 14 Source documents/pages used for published judge-to-department assignments
judicial_officers.parquet 77 Canonical judge/officer name dimension and raw-name variant mapping
judicial_assignments.parquet 804 Published judge assignment rows by effective date and department
judicial_department_assignments.parquet 777 One row per source/date/department, ready for date+department joins
calendar_with_judicial_assignments.parquet 318,993 Calendar hearings joined to published department assignments by hearing date and department

Data Sources

cases, calendar, attorneys, register_of_actions — Scraped from San Francisco Superior Court's public criminal case pages. These include public case numbers, court case IDs, defendant names, filing dates, hearing schedules, listed attorneys, and register-of-actions docket entries.

da_arrests — San Francisco District Attorney arrest/open-data feed. Fields: incident number, court number, arrest date, arresting agency, booked charges, booked case type, crime type, DV flag, DA action taken, and data freshness timestamps.

da_prosecuted — San Francisco District Attorney prosecuted-cases/open-data feed. Fields: incident number, court number, arrest date, filed charges, filed case type, crime type, DV flag, DA action taken, case status, and data freshness timestamps.

sfsc_case_matches and sfsc_charge_dispositions — Derived from SFSC_CHARGE_DISPOSITION.xlsx, a charge/disposition spreadsheet produced by San Francisco Superior Court in response to a California Rules of Court rule 10.500 records request.

This was not a public bulk download or an ordinary open-data release. The Court declined to provide public case numbers — the same case numbers it publishes on its own website, on individual case pages, accessible to anyone with a browser. Instead, after extended back-and-forth in which the Court appeared to treat a routine records-access rule as an unreasonable imposition, it supplied anonymized case identifiers. The result: public-interest researchers receive a spreadsheet that is artificially harder to join to other public records, for no apparent reason beyond institutional reluctance to make bulk access straightforward.

sfsc_case_matches was generated locally by matching the anonymized Court-provided spreadsheet back to public court and DA data. The match key is filed_date + normalized charge multiset, accepted only when that composite key is unique on both sides. This is labeled "deterministic-inferred" rather than simply "deterministic" because the Court chose not to provide the obvious join key (the public case number), requiring inference of a link that should have been given outright.

sfsc_charge_dispositions contains the matched charge-level fields from the rule 10.500 spreadsheet, enriched with the public case_number where a strict match succeeded. Fields include statute descriptions, initial and disposition charge types, disposition date/type, diversion type, sentence type/date, probation days, jail days, and prison days.

judicial_assignment_sources, judicial_officers, judicial_assignments, judicial_department_assignments, and calendar_with_judicial_assignments — Built from public San Francisco Superior Court judicial assignment materials: published assignment memos, department-assignment PDFs, and the current judicial assignment web page.

These files identify the judge publicly assigned to a court department over an effective-date range. They do not prove the historical actual daily sitting judge for a particular hearing; substitute judges, visiting judges, illness, vacations, and calendar coverage changes may not appear in these public assignment documents. A rule 10.500 request for actual presiding-judge-per-hearing data is outstanding with the Court, but given their track record of treating public records access as an adversarial proceeding, we are not holding our breath. Published department assignments are used in the meantime.

Source types used:

Some PDFs were scanned/image-only. Those were OCR'd locally with glm-ocr via Ollama; cached OCR output is stored in judicial_assignment_sources/ocr/. Text-based PDFs were parsed with pdftotext.

Judge names are preserved as extracted and also mapped to canonical keys in judicial_officers so analytics can merge harmless variants such as missing middle initials, OCR misspellings, and first-name/last-name ordering while still auditing the source strings.

Generated tables:

  • judicial_assignment_sources.parquet: one row per source document/page set, including URL, local file path, effective start/end dates, extraction method, and date-basis notes.
  • judicial_officers.parquet: canonical judge/officer dimension table with raw extracted variants, cleaned variants, placeholder flags, and normalization method.
  • judicial_assignments.parquet: raw extracted assignment rows from each source, usually one row per department/judge/function.
  • judicial_department_assignments.parquet: normalized one-row-per-source/date/department table, intended for joining by department + hearing date.
  • calendar_with_judicial_assignments.parquet: calendar.parquet left-joined to judicial_department_assignments using calendar department and hearing date falling within the assignment effective range.

Join confidence fields:

  • deterministic_to_published_department_assignment: exact department/date match to a single published assigned judge.
  • published_assignment_month_only_date: joined to a source whose public header only gave month/year, so the script used the first day of that month and flags the date basis.
  • Null confidence: no matching public assignment source was available for that calendar row.

The integration script is integrate_judicial_assignments.py. Re-running it downloads/caches source documents, OCRs scanned PDFs when needed, rebuilds the SQLite tables/views in cases.db, and regenerates the parquet outputs.

Usage

import duckdb

con = duckdb.connect()

# Query a single table
con.sql("SELECT * FROM 'cases.parquet' LIMIT 10").show()

# Join cases to charge dispositions
con.sql("""
    SELECT c.case_number, c.defendant_name, d.statute_description,
           d.dispo_type, d.jail_days, d.prison_days
    FROM 'cases.parquet' c
    JOIN 'sfsc_charge_dispositions.parquet' d USING (case_number)
    WHERE d.prison_days > 0
    ORDER BY d.prison_days DESC
    LIMIT 20
""").show()

License

CC-BY-NC-4.0. Non-commercial use only.

Downloads last month
411