snowflake.snowpark.DataFrame.col¶
- DataFrame.col(col_name: str) Column[source]¶
Returns a reference to a column in the DataFrame.
Use the returned
Columnexpression in operations such asselect()andfilter(). This method doesn’t retrieve the column’s values; call an action such ascollect()on the resulting DataFrame to retrieve rows.- Parameters:
col_name – The name of a column in this DataFrame, or
"*"to reference all columns.
Examples: