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

snowflake.snowpark.Column.try_cast

Column.try_cast(to: str | DataType) Column[source] (https://github.com/snowflakedb/snowpark-python/blob/release-v1.5.0/src/snowflake/snowpark/column.py#L506-L510)

Tries to cast the value of the Column to the specified data type. It returns a NULL value instead of raising an error when the conversion can not be performed.

Language: English