mean() function
The mean()
function computes the mean or average of non-null records in the input table.
mean()
is an aggregate function.
Output data type: Float
mean(column: "_value")
Parameters
column
Column to use to compute the mean.
Default is "_value"
.
tables
Input data.
Default is piped-forward data (<-
).
Examples
The following example uses data provided by the sampledata
package
to show how mean()
transforms data.
import "sampledata"
sampledata.int()
|> mean()
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
InfluxDB Cloud customers can contact InfluxData Support.