https://flyte.org logo
#ask-the-community
Title
# ask-the-community
f

Frank Shen

04/05/2023, 4:47 PM
Hello, I have a workflow containing a Dynamic workflow:
Copy code
@dynamic
def train_foreach_tenure(df, ...)
    for tenure in range(1, 25, 1):
        if tenure <= 23: 
            data = df[df['TENURE']==tenure]
        else:
            data = df[df['TENURE']>=tenure]

        training_task(df=data)

@workflow
def wf_train()
    ...
    train_foreach_tenure()
    ...
71 Views