AVG (Lakehouse v2)
返回数值列的平均值。
Analyze 语法
Section titled “Analyze 语法”func.avg(get_column(table, 'salary'))Analyze 示例
Section titled “Analyze 示例”func.avg(get_column(table, 'salary'))SQL 语法
Section titled “SQL 语法”AVG(<salary>)SQL 示例
Section titled “SQL 示例”SELECT department, AVG(salary) FROM employees GROUP BY department;
┌────────────┬──────────────┐│ department │ avg(salary) │├────────────┼──────────────┤│ Sales │ 65000.00 ││ IT │ 82000.00 │└────────────┴──────────────┘