I'm writing a Airflow DAG that uses a PythonOperator. It requires a "python_callable" which it seems to be a function. I'm calling this Python code dag-transf.py
I have a Python code that does some transformation through pandas (transf.py)
I need dag-transf.py task to execute transf-py as the "python_callable" parameter.
with DAG(dag_id='dag_transformation',
default_args=default_args,
catchup=False,
schedule_interval="0 0 1 * *") as dag:
exporting = PythonOperator(
task_id='exporting_task',
python_callable=transf_function #transf_function needs to actually be transf.py
How am I supposed to use this external file as the function code itself ?