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] (https://github.com/snowflakedb/snowpark-python/blob/v1.48.0/src/snowflake/snowpark/_functions/scalar_functions.py#L1275-L1299)¶
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: