Adez017 commented on code in PR #16927: URL: https://github.com/apache/datafusion/pull/16927#discussion_r2238352500
########## docs/source/user-guide/sql/aggregate_functions.md: ########## @@ -657,6 +725,30 @@ regr_intercept(expression_y, expression_x) - **expression_y**: Dependent variable expression to operate on. Can be a constant, column, or function, and any combination of operators. - **expression_x**: Independent variable expression to operate on. Can be a constant, column, or function, and any combination of operators. +### Example + +consider the following table: + +```sql +>create table weekly_performances(int day, int user_signups) as values (1,60), (2,65), (3, 70), (4,75), (5,80); +> select * from weekly_performances; ++------+---------------------+ +| week | productivity_score | Review Comment: thanks for checking out i think , i messed while performing the task quick -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org