In pyspark 1.6.2, I can import col function by
col
from pyspark.sql.functions import col
but when I try to look it up in the Githu
I ran into a similar problem trying to set up a PySpark development environment with Eclipse and PyDev. PySpark uses a dynamic namespace. To get it to work I needed to add PySpark to "force Builtins" as below.