Lukasz Mentel

01/21/2021, 7:22 PM
I've been using prefect for some time and I really enjoy the experience. There was a bit of a learning curve but once I got the concepts the progress is steady. I started with the functional API but I realized I need a bit more flexibility to dynamically create the flows. I'm currently trying to find the imperative equivalent of the following code:
Copy code
with Flow("my-flow") as flow:
    data_batch = fetch_dataframe(path)

    inputs = fetch_series(data_batch, "series-name")
    result = compute_vfr(inputs)

    power = fetch_series(data_batch, "power")
    cop = compute_cop(result, power)