Giter VIP home page Giter VIP logo

uktraffic's Introduction

uktraffic

Analysis & Visualization of a Kaggle provided dataset (https://www.kaggle.com/daveianhickey/2000-16-traffic-flow-england-scotland-wales) of traffic accidents in the United Kingdom.

Getting Started

The visualization components of this project will be heavily reliant upon Bokeh, an interactive visualization library based on d3.js. If you have the Anaconda distribution (recommended; https://anaconda.org) you can install Bokeh like so:

conda install bokeh

If not, a pip install should do the trick.

pip install bokeh

For the Choropleth mapping component of this project, I used geopandas (http://geopandas.org), a nice GIS layer library for Python. There are other options (e.g. Fiona, Pyshp) but I opted for this one due to familiarity.

conda install -c conda-forge geopandas

Or...

pip install geopandas

The UK_Traffic_Exploratory_Visuals.ipynb includes all of the processing steps as well as embedded interactive plots. The UK_Traffic_Choropleth_Map.ipynb excludes all the processing steps and renders the choropleth maps. Due to the data intensity, most of the interactive features take very long to run or time out all together for the choropleth maps.

There is also the ability to run Bokeh Server apps using the interactive_exp_visuals.py and interactivve_choropleth.py scripts.

To render the exploratory visual dashboard.

bokeh serve --show interactive_exp_visuals.py

To render the interactive chroopleth maps.

bokeh serve --show interactivve_choropleth.py

uktraffic's People

Contributors

dthoma8 avatar

Watchers

James Cloos avatar  avatar

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.