You are viewing documentation about an older version (1.5.0). View latest version

snowflake.snowpark.functions.sin

snowflake.snowpark.functions.sin(e: Column | str) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.5.0/src/snowflake/snowpark/functions.py#L1710-L1720)

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

Example::
>>> from snowflake.snowpark.types import DecimalType
>>> df = session.generator(seq1(0), rowcount=3).select(sin(seq1(0)).cast(DecimalType(scale=4)))
>>> df.collect()
[Row(CAST (SIN(SEQ1(0)) AS NUMBER(38, 4))=Decimal('0.0000')), Row(CAST (SIN(SEQ1(0)) AS NUMBER(38, 4))=Decimal('0.8415')), Row(CAST (SIN(SEQ1(0)) AS NUMBER(38, 4))=Decimal('0.9093'))]
Copy
语言: 中文