You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Fortunately, PySpark has functions for handling this built into the `pyspark.ml.features` submodule. You can create what are called `'one-hot vectors'` to represent the carrier and the destination of each flight. A one-hot vector is a way of representing a categorical feature where every observation has a vector in which all elements are zero except for at most one element, which has a value of one (1).
I think this is a typo. It should be pyspark.ml.feature (singular) instead of pyspark.ml.features (plural), as you can see in the source code of the relevant package
I too have made this error, which is how I found this code () when I searched for my error, which was No module named 'pyspark.ml.features' ... but fixed my error by using import pyspark.ml.feature instead.
The text was updated successfully, but these errors were encountered:
DataCamp/Introduction_to_PySpark.py
Line 536 in fd8ad69
I think this is a typo. It should be
pyspark.ml.feature
(singular) instead ofpyspark.ml.features
(plural), as you can see in the source code of the relevant packageI too have made this error, which is how I found this code () when I searched for my error, which was
No module named 'pyspark.ml.features'
... but fixed my error by usingimport pyspark.ml.feature
instead.The text was updated successfully, but these errors were encountered: