import VectorAssembler error

Tahir - Oct 27 - - Dev Community

Hi there,

In my jupyter lab, when do: from pyspark.ml.feature import VectorAssembler

I get error:


ModuleNotFoundError Traceback (most recent call last)
Cell In[7], line 2
1 from pyspark.sql import SparkSession
----> 2 from pyspark.ml.feature import VectorAssembler

File /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/pyspark/ml/init.py:22

I am not sure how to fix this one, I am new to pyspark and new to jupyter lab.

.
Terabox Video Player