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

Solution: Import the 'Row' module

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

from pyspark.sql import Row

 

For more information:
Python pyspark Row