How to Solve NameError: name 'BaseOperator' is not defined -- airflow
Solution: Import the 'BaseOperator' module
# Add the following line to the top of your code
from airflow.models.baseoperator import BaseOperator
For more information:
airflow BaseOperator