Expanding analysis with a transformation
Let’s look at a relatively simple example of how we might use the transformation functions we’ve looked at to aid in analysis. We’ll add a few queries, each representing a different metric, and then we’ll use the Reduce transformation to create some aggregations of the data from each query, all in a tabular format.
The data we’ll be using is derived from the ETL we created in Chapter 5, Extracting and Visualizing Data with InfluxDB and Grafana. Feel free to copy over the code from the Chapter05
directory or use the Chapter06
directory; both contain the same code.
The process is virtually identical to what we covered in Chapter 5, Extracting and Visualizing Data with InfluxDB and Grafana, so we won’t go into the details. Here is the process in schematic format, so refer to Chapter 5, for the details:
- Run the Python
weather.py
script to download the NOAA weather data from a series of weather...