How to Solve NameError: name 'DummyOperator' is not defined -- airflow

Solution: Import the 'DummyOperator' module

# Add the following line to the top of your code
from airflow.operators.dummy import DummyOperator

 

For more information:
airflow DummyOperator