snowflake.snowpark.functions.tan

snowflake.snowpark.functions.tan(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/functions.py#L2302-L2315)

Computes the tangent of its argument; the argument should be expressed in radians.

Example::
>>> from snowflake.snowpark.types import DecimalType
>>> df = session.create_dataframe([0, 1], schema=["N"]).select(
...     tan(col("N")).cast(DecimalType(scale=4))
... )
>>> df.collect()
[Row(CAST (TAN("N") AS NUMBER(38, 4))=Decimal('0.0000')), Row(CAST (TAN("N") AS NUMBER(38, 4))=Decimal('1.5574'))]
Copy
Language: English