This tutorial uses air quality data about :math:`NO_2` and Particulate matter less than 2.5
micrometers, made available by
`OpenAQ `__ and using the
`py-openaq `__ package.
The ``air_quality_long.csv`` data set provides :math:`NO_2` and
:math:`PM_{25}` values for the measurement stations *FR04014*, *BETR801*
and *London Westminster* in respectively Paris, Antwerp and London.
The air-quality data set has the following columns:
- city: city where the sensor is used, either Paris, Antwerp or London
- country: country where the sensor is used, either FR, BE or GB
- location: the id of the sensor, either *FR04014*, *BETR801* or
*London Westminster*
- parameter: the parameter measured by the sensor, either :math:`NO_2`
or Particulate matter
- value: the measured value
- unit: the unit of the measured parameter, in this case ‘µg/m³’
and the index of the ``DataFrame`` is ``datetime``, the datetime of the
measurement.
.. note::
The air-quality data is provided in a so-called *long format*
data representation with each observation on a separate row and each
variable a separate column of the data table. The long/narrow format is
also known as the `tidy data
format `__.
.. raw:: html
To raw data