pyspark.sql.functions.col

pyspark.sql.functions.col(col: str) → pyspark.sql.column.Column

Returns a Column based on the given column name.

Examples

>>> col('x')
Column<'x'>
>>> column('x')
Column<'x'>