snowflake.snowpark.functions.tanh¶
- snowflake.snowpark.functions.tanh(e: Union[Column, str]) Column [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L1980-L1992)¶
Computes the hyperbolic tangent of its argument.
- Example::
>>> from snowflake.snowpark.types import DecimalType >>> df = session.create_dataframe([0, 1], schema=["N"]).select( ... tanh(col("N").cast(DecimalType(scale=4))) ... ) >>> df.collect() [Row(TANH( CAST ("N" AS NUMBER(38, 4)))=0.0), Row(TANH( CAST ("N" AS NUMBER(38, 4)))=0.7615941559557649)]