mean() function computes the mean or average of non-null records in the input table.
mean() is an aggregate function.
Output data type: Float
Column to use to compute the mean.
Default is piped-forward data (
The following example uses data provided by the
to show how
mean() transforms data.
import "sampledata" sampledata.int() |> mean()
View input and output
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, the following resources are available:
InfluxDB Cloud customers can contact InfluxData Support.