Giter Site home page Giter Site logo

deaths-by-country's Introduction

US State Department Data of Deaths by US Citizens Abroad

Data is from here

The data is a little messy in the geographics. I did some Levenshtein matches to sync it with ISO codes, but there are a fair number of data irregularities that made things hard--- where Levs didn't match, I ran the address through googlemaps API, which did a pretty good job of identifying the country.

Over the next couple of days, with my 1000 API calls per day, I'm going to go back to the original list and record lat-longs, so the actual accident sites, by city, will be available for mapping.

The most useful item in this repo is probably output/useful.csv.

The source file is source/report.xls

There are several correspondences in the source folder from various ISO crosswalks---licenses looked open source. Please let me know if I got that incorrect from anyone. (The ISO itself will ask you to buy a copy of the standard, so definitely do that if you're considering commercial use of of any of this.)

The code itself is pretty ugly---due in part to the API limitations of google maps meaning Levenshteins were cheaper to run than API calls, but also due to data cleaning having a lot of side effects, making imperative loops more necessary and clean functions trickier. A lot of this cleaning might have been easier in R.

Anyway, the output/useful.csv file gives you:

  • /common/ country name (more often than the semi-useless formal one)
  • ISO-3166-alpha-2
  • ISO-3166-alpha-3
  • Cause of Death
  • Aggregated Cause of Death (so, all "Drowning" are together)
  • Detail (For "Drowning - Canal", "Drowning - Ocean", the second part, only "Canal", "Ocean")

Travel safe.

deaths-by-country's People

Contributors

mittenchops avatar

Watchers

 avatar

Forkers

davseq jgzmlmf

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.