Skip to content

Python Programming - Week 8 workshop task

Notifications You must be signed in to change notification settings

fionnachalmers/w08-workshop

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Week 8 workshop: Edinburgh cycle hire data

Edinburgh has a bike hire scheme, where you can rent a bike from one station to another. The company which runs the scheme publishes anonymised data every month, containing all information about the bike trips people have made that month.

All available data files (since the scheme started in September 2018) are available here, as well as a description of the data. It is published under the Open Government License (OGL).

The data file for October 2020 is already in the repo (10.csv), but you can download more data from here if you want to look at other times -- for instance, if you want to have a look at changes with seasons, with the Covid-19 lockdown (which started mid-March 2020 here), etc...

Task: make sense of the data!

Your task is to read the CSV file into a pandas dataframe, and to find interesting things in it. You can start a new .py script or a Jupyter notebook. Here are some suggestions -- you will probably only have time for one or two during the workshop, so pick one that you like!

  • What is the average journey time and distance of bike trips on weekdays? What about weekends?
  • How many stations appear in the dataset? Which were the most common starting stations? Think about how to display/plot the results of your analysis.
  • What was the most common time(s) of day for journeys to be undertaken?
  • Can you visualise which stations were used mostly for shorter trips and which one for longer trips?
  • Can you compare the statistics of different months in summer? Is there any remarkable difference between them? (Do this with 2019 data!)

You could use pandas to extract different parts of the data from the dataframe, matplotlib or seaborn to make some plots, SciPy for statistics...

Useful documentation links

You can also look at the Week 7 and Week 8 tutorial notebooks for examples.

About

Python Programming - Week 8 workshop task

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published