snowflake.snowpark.functions.regr_valx¶
- snowflake.snowpark.functions.regr_valx(y: Union[snowflake.snowpark.column.Column, str], x: Union[snowflake.snowpark.column.Column, str]) Column[source]¶
Returns None if either argument is None; otherwise, returns the second argument. Note that REGR_VALX is a None-preserving function, while the more commonly-used NVL is a None-replacing function.
- Parameters:
y (ColumnOrName) – The dependent variable column.
x (ColumnOrName) – The independent variable column.
- Returns:
The result of the regr_valx function.
- Return type:
Example: