From ada9f493abdd01fd617e7799a0657ef59d6e3997 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=96=87=E8=89=B3?= Date: Sat, 8 Jan 2022 18:00:09 +0800 Subject: [PATCH] Update example_python_operator.py --- dags/example_python_operator.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dags/example_python_operator.py b/dags/example_python_operator.py index 00ad132..34c23ec 100644 --- a/dags/example_python_operator.py +++ b/dags/example_python_operator.py @@ -18,6 +18,7 @@ with DAG( @task.virtualenv(task_id="virtualenv_python", requirements=["sklearn"], system_site_packages=False) def print_context(ds=None, **kwargs): from sklearn import linear_model + import pandas as pd """Print the Airflow context and ds variable from the context.""" print(ds) return 'Whatever you return gets printed in the logs'