mean
statisticsCalculates the arithmetic mean (average) of values
Syntax
mean(array|dataframe) Parameters
array|dataframe (array or dataframe) The data to calculate the mean of
Returns
number The arithmetic mean of the values
Examples
Input:
[1, 2, 3, 4, 5] | mean Output:
3 Calculate average price from a DataFrame column
Input:
mean(.price) Output:
24.50 The mean() function calculates the arithmetic average of numeric values in an array or DataFrame column.
Usage
Use mean() for statistical analysis, data summarization, and calculating central tendency. Also available as avg().