pyspark.sql.functions.
col
Returns a Column based on the given column name.
Column
New in version 1.3.0.
Changed in version 3.4.0: Supports Spark Connect.
the name for the column
the corresponding column instance.
Examples
>>> col('x') Column<'x'> >>> column('x') Column<'x'>