graph TB A(All Data) -->B(SIN) A -->C(AUS) A -->D(UK) A -->E(US) A -->F(NZ) B -->G(SI) C -->I(SI) C -->J(ORIGINAL) D -->K(SI) D -->L(ORIGINAL) E -->M(SI) E -->N(ORIGINAL) F -->O(SI) F -->P(ORIGINAL)
05| A Researcher’s Frustration
Introduction
You are the lead researcher in an international collaboration involving five countries (Singapore, US, UK, Australia New Zealand). The research project consists of measuring the height of an adult macaque species. The project is at its end, and you are collating all the data measured by your collaborators.
Upon trying to combine the data files from your collaborators, you realise (in incredulous frustration) that each of your collaborators has made their measurements using a different unit! Here are the units that were used.
Country | Unit |
---|---|
Singapore | metres |
UK | inches |
US | feet |
Australia | centimetres |
New Zealand | millimeters |
You can download the data here
Tasks
Write some Python code to:
- Produce a copy of the data that is ‘corrected’ to SI units.
- Name these files with an ‘_si’ at the end.
- Organise your data files in the following file structure
- Plot histograms of the data.
- Plot a histogram for each of the countries as a separate plot,
- Plot histograms of the countries as a grid of plots,
- Plot a histogram for the combined data.