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

snowflake.snowpark.functions.col

snowflake.snowpark.functions.col(col_name: str) Column[source]

Returns the Column with the specified name.

Example::
>>> df = session.sql("select 1 as a")
>>> df.select(col("a")).collect()
[Row(A=1)]
Copy