How to Solve NameError: name 'Pipeline' is not defined -- pyspark

Solution: Import the 'Pipeline' module

To Solve the error, add the following line to the top of your code.

from pyspark.ml import Pipeline

 

For more information:
Python pyspark Pipeline