This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def read_csv(): | |
df=pd.read_csv("xyz.csv") #reading a csv file | |
return df #returning the dataframe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import | |
from datetime import timedelta | |
from airflow import DAG | |
from datetime import datetime,timedelta | |
from airflow.operators.dummy_operator import DummyOperator | |
#import dummyoperator airflow | |
# define defult dag | |
default_args={ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#imports | |
import prefect | |
from prefect import task, Flow | |
#deinfe tasks | |
@task | |
def hello(): | |
print("Hello World!") | |
#initialize tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from prefect import flow, task | |
@task | |
def sampole_task(): | |
print("Hello_world") |