killerswan / dbfilter

Some data munging in Python (for a UCB researcher checking EPA data)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

First steps

For SQLite exploration, one script here creates a database with a teeny amount of sample data:

rm *.sqlite3
python dbcreate.py

And another script searches a couple columns of a table, then prints matches into a CSV file:

rm *.csv
python dbfilter.py

cat output.csv

😺 UCMR3 Data

Now to filter the data from this UCMR3 publication, after extracting the ZIP file so that this file exists: ucmr-3-occurrence-data/UCMR3_All.txt...

python ucmr_filter.py

This creates a file named filtered-ucmr3-data.csv which has a subset of the data, still in this tab-delimited Excel-readable file format.

About

Some data munging in Python (for a UCB researcher checking EPA data)

License:ISC License


Languages

Language:Python 100.0%