Skip to content

Instantly share code, notes, and snippets.

@tlevine
Last active June 4, 2017 22:56
Show Gist options
  • Save tlevine/5605337 to your computer and use it in GitHub Desktop.
Save tlevine/5605337 to your computer and use it in GitHub Desktop.
Asthma
pip install querycsv
curl --compressed rows.appgen.me/fabj-6qv3 > /tmp/fabj6qv3.csv
querycsv.py -i /tmp/fabj6qv3.csv -o asthma.csv "SELECT [ASTHMA2], [Shape] FROM [fabj6qv3] WHERE [BOROUGH] = 'Brooklyn';"
sed -i -e '1 s/"Shape"/"Latitude","Longitude"/' -e 's/"(//' -e 's/ //' -e 's/)".*$//' asthma.csv
less asthma.csv
@tlevine
Copy link
Author

tlevine commented May 18, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment