Cannot find col function in pyspark

前端 未结 6 1044
挽巷
挽巷 2020-12-02 12:23

In pyspark 1.6.2, I can import col function by

from pyspark.sql.functions import col

but when I try to look it up in the Githu

6条回答
  •  抹茶落季
    2020-12-02 12:37

    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.

    Forced builtins

提交回复
热议问题