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

Solution: Import the 'import_string' module

# Add the following line to the top of your code
from airflow.utils.module_loading import import_string

 

For more information:
airflow import_string