Unresolved reference while trying to import col from pyspark.sql.functions in python 3.5 -


refer post here: spark structured streaming python import 'col' in python 3.5

from pyspark.sql.functions import col 

however got error saying unresolved reference col. i've installed pyspark library, wondering has 'col' been removed pyspark library? , how can import 'col' then.

it turns out intellij idea's problem. though shows unresolved reference, program still runs without problem in command line.


Comments

Popular posts from this blog

service - Android MediaPlayer calls onCompletion before it already finished -

javascript - Training Neural Network to play flappy bird with genetic algorithm - Why can't it learn? -

javascript - Create a stacked percentage column -