Skip to content

Code snippets for analyzing PHMSA Hazmat Incident Report data collected by the Data Liberation Project.

Notifications You must be signed in to change notification settings

data-liberation-project/phmsa-hazmat-incident-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Snippets for PHSMA Hazmat Incident Report Data

The goal of this repository is to help you gain familiarity with the PHMSA Hazmat Incident Report data collected by the Data Liberation Project, with an eye toward understanding the data structure and data quality.

The code in this repository is written in Python and assumes you have some familarity with that programming language.

Getting started

If you just want to read the code and review the outputs, you can view this repository's main notebook directly.

If you want to run the code yourself, follow these steps:

  • Ensure that you have Python 3 installed
  • Use git clone to copy this repository onto your computer
  • cd into the repository's main directory
  • Run git submodule update --init --remote --recursive to pull the latest data into the phmsa-hazmat-incident-reports/ subdirectory
  • Run make venv to create a Python virtual environment with the necessary requirements
  • Run source venv/bin/activate to activate the virtual environment
  • Run jupyter lab to launch Jupyter
  • Within Jupyter, navigate to the notebooks/snippets.ipynb notebook

Contributors

Many thanks to the Data Liberation Project volunteers who have contributed to this repository:

Licensing

This repository's code is available under the MIT License terms.

Questions?

File an issue in this repository or email Jeremy Singer-Vine at [email protected].

About

Code snippets for analyzing PHMSA Hazmat Incident Report data collected by the Data Liberation Project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published