Downloading the UK Road Safety Data dataset

In this section, we're going to download and take a bird's eye view of the dataset we'll be using throughout this book—the UK Road Safety Data. In total, this dataset provides more than 15 million rows across three CSV files.

How to do it…

  1. Visit the following URL: http://data.gov.uk/dataset/road-accidents-safety-data/resource/80b76aec-a0a1-4e14-8235-09cc6b92574a.
  2. Click on the red Download button on the right side of the page. I suggest creating a data directory to hold the data files.
  3. Unpack the provided zip files in the directory you created.
  4. You should see the following four files included in the expanded directory:
    • Accidents7904.csv
    • Casualty7904.csv
    • Road-Accident-Safety-Data-Guide-1979-2004.xls
    • Vehicles7904.csv ...

Get Python Business Intelligence Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.