Giter VIP home page Giter VIP logo

rail-fare-increases-2019's Introduction

Rail fare increases: Charts explain passengers' frustration

In January 2019 as rail fares increased we published an analysis of official data which showed that rail users were paying more for worsening delays, shortages of staff and, in some areas, an ageing fleet of carriages.

The analysis included scripts in both R (analysis, visualisation) and Python (scraping).

This is the fifth story the data unit has done on rail fare rises. In August 2018 we reported Commuters 'pay fifth of salary' on season ticket, and 12 months before that we reported Commuters to pay £100 more in 2018. In January 2017 we published Rail fares: Who are the season ticket winners and losers? and in September 2016 we published Rail season tickets cost 10% of net pay.

Get the data

The tweets data is not included here because it is too large for GitHub. However, the filtered file of tweets from November 20 onwards, is.

Quotes and interviews

  • Stewart Frank, commuter
  • James Vasey, Bradford Rail Users Group
  • Spokesperson, The Office of Rail and Road (ORR)
  • Darren Shirley, Campaign for Better Transport (CBT)
  • Paul Plummer, chief executive, the Rail Delivery Group

Visualisation

  • Tree map: Rail delays by cause and responsibility
  • Grouped bar chart: Train delays due to staff shortages, 2017 vs 2018
  • Bar chart: Percentage of tweets saying 'sorry', 'apologies' or 'apologise' between November 20 and December 19 by train operator
  • Column chart: Compensation claims made by Northern Rail passengers during 2018, by period
  • Line chart: Age of rolling stock by operator, 2008-2018
  • Table: Rise in monthly rail season ticket fares, by route

Scripts and code

  • The notebook traindelays details the process of analysing ORR data on train delays.
  • The R notebook 7periodcomparison takes the periodic data produced by the ORR and produces totals for 7 periods, allowing for a comparison between the delays to date, and those for the same 7-period dates in previous years.
  • Python script to scrape Twitter accounts
  • The R markdown file traintweetsrmdonly details the process of analysing tweets by train company accounts. This is not saved as a notebook because the resulting HTML file is over 40MB!

Related repos

rail-fare-increases-2019's People

Contributors

paulbradshaw avatar

Watchers

 avatar  avatar  avatar  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.