snowflake.snowpark.functions.dayname

snowflake.snowpark.functions.dayname(e: Union[Column, str]) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/v1.16.0/src/snowflake/snowpark/functions.py#L4425-L4439)

Extracts the three-letter day-of-week name from the specified date or timestamp.

Example::
>>> import datetime
>>> df = session.create_dataframe(
...     [[datetime.datetime.strptime("2020-05-01 13:11:20.000", "%Y-%m-%d %H:%M:%S.%f")]],
...     schema=["a"],
... )
>>> df.select(dayname("a")).collect()
[Row(DAYNAME("A")='Fri')]
Copy
语言: 中文