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

Solution: Import the 'apply_defaults' module

# Add the following line to the top of your code
from airflow.utils.decorators import apply_defaults

 

For more information:
airflow apply_defaults