Skip to content

Instantly share code, notes, and snippets.

@kvnkho
Created May 31, 2022 05:47
Show Gist options
  • Select an option

  • Save kvnkho/49ff4d7b10473b1fe36325052f997416 to your computer and use it in GitHub Desktop.

Select an option

Save kvnkho/49ff4d7b10473b1fe36325052f997416 to your computer and use it in GitHub Desktop.
# Prefect 1.0
@task
def pop(x):
x.pop(0)
return x
with Flow("get-item") as flow:
e = extract() # returns [1,2,3]
e2 = pop(e)
t = transform(e2[1])
l = load(t)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment