snowflake.snowpark.functions.tanh¶
- snowflake.snowpark.functions.tanh(e: ColumnOrName) Column [source]¶
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)]