Analyzing River Thames Water Levels
Time series data is everywhere, from watching your stock portfolio to monitoring climate change, and even live-tracking as local cases of a virus become a global pandemic. In this project, you’ll work with a time series that tracks the tide levels of the Thames River. You’ll first load the data and inspect it data visually, and then perform calculations on the dataset to generate some summary statistics. You’ll end by decomposing the time series into its component attributes and analyzing them.
Here's a map of the locations of the tidal gauges along the River Thames in London.
The dataset comes with a file called
Data_description.pdf. The dataset consists of 13
.txt files, containing comma separated data. We'll begin by analyzing one of them, the London Bridge gauge, and preparing it for analysis. The same code can be used to analyze data from other files (i.e. other gauges along the river) later.
|Date and time||Date and time of measurement to GMT. Note the tide gauge is accurate to one minute.||dd/mm/yyyy hh:mm:ss|
|Water level||High or low water level measured by tide gauge. Tide gauges are accurate to 1 centimetre.||metres (Admiralty Chart Datum (CD), Ordnance Datum Newlyn (ODN or Trinity High Water (THW))|
|Flag||High water flag = 1, low water flag = 0||Categorical (0 or 1)|
# We've imported your first Python package for you, along with a function you will need called IQR import pandas as pd def IQR(column): q25, q75 = column.quantile([0.25, 0.75]) return q75-q25
data = pd.read_csv('data/10-11_London_Bridge.txt')