Mean (Analytic Filter)
Description
The Mean filter is used to calculate a mean (average) from the data set.
When used on multiple rows, it returns the per-row means (ie. it will return the same number of columns and only one row).
When used on a single row, it returns the overall mean (ie. it will return a single number).
This is the same as using the Pandas 'mean' function on a DataFrame.
Parameters
This filter has no parameters.
Example
<filter type="Mean"/>
Calculates the mean of the data frame
Before
Index | Col 1 | Col 2 |
---|---|---|
07:00:00 | 20 | 40 |
07:01:00 | 40 | 80 |
After
Index | Col 1 | Col 2 |
---|
07:01:00 | 30 | 60 |