Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns a Column based on the given column name. Supports Spark Connect.
Syntax
from pyspark.databricks.sql import functions as dbf
dbf.col(col=<col>)
# Or
dbf.column(col=<col>)
Parameters
| Parameter | Type | Description |
|---|---|---|
col |
str |
The name for the column. |
Returns
pyspark.sql.Column: the corresponding column instance.
Examples
from pyspark.databricks.sql import functions as dbf
dbf.col('x')
Column<'x'>