Mines & quarries
MSHA's Mine Data Set in Python: every US mine with its status, commodity and position, active mines by county, coal production and jobs since 2000, injury rates per hour worked, what injures miners, sand, gravel and stone quarries, and the coordinate, id and accident-code traps.
The Mine Safety and Health Administration registers every mine in the United States and publishes the register weekly: 92,090 mines, 12,099 of them working, each with its operator, commodity, type, county and position, alongside every mine's hours, employment and coal output each year since 2000 and every accident report. Most working mines are sand and gravel pits and stone quarries; 577 are coal mines.
The guides here read the register, explain what MSHA counts as a mine and how to get the data without code, map working mines by county, chart coal production and jobs since 2000, compute injury rates per hour worked, count what injures and kills miners and find the quarries. Three pages deal with the traps: positions missing for half the mines, ids and county codes that lose their zeros or their state, and accident rows that are not injuries.
🧭 Start with the concepts
The ideas the how-to guides below assume you already have.
⚙️ Then do the task
Step-by-step walkthroughs with code you can copy and adapt.
- How to Read MSHA's Mine Data Set in Python
- How to Map Active Mines by County and Commodity
- How to Chart US Coal Production and Mining Jobs Since 2000
- How to Compute Mine Injury Rates per 200,000 Hours Worked
- What Injures Miners? Accident Classes and Fatalities in MSHA Reports
- How to Find Sand, Gravel and Stone Quarries in MSHA Data
🔧 When it breaks
The errors this topic produces, with the cause explained rather than just the command.
Related topics
Subjects that keep coming up alongside this one, most overlap first.