Thread
#prefect-community
    i

    itay livni

    2 years ago
    Hi there again. Running into an issue wher I pass two
    pamdas dataframes
    However the
    merge
    fails with a
    pandas error
    ValueError: The truth value of a DataFrame is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
    Without the
    merge
    command both return valid
    dataframes
    . Any suggestions?
    Chris White

    Chris White

    2 years ago
    what version of prefect are you using? I believe this was fixed in one of the latest releases
    i

    itay livni

    2 years ago
    0.6.6
    FWIW: I wrote the
    make_node
    flow
    both imperatively and functionally. Imperative is easier to read. Functional is easier to write and take less
    prefect
    knowledge.
    Chris White

    Chris White

    2 years ago
    yea it looks like this was fixed in 0.6.7 so I’d recommend upgrading and let me know if that solves your problem!
    i

    itay livni

    2 years ago
    Upgraded to 0.6.7. All good
    This is the basic flow I keep on asking about. It makes a node for a knowledge graph -> which in turn will be used to make a simple vocabulary games.
    Chris White

    Chris White

    2 years ago
    very cool, will you be able to open source / share any of this code when you’re done?
    i

    itay livni

    2 years ago
    I've been thinking about that. It's worth a discussion. The main problem is all the credentials to various api's
    Chris White

    Chris White

    2 years ago
    yea that’s fair, you could abstract those as either secrets or environment variables
    i

    itay livni

    2 years ago
    But if you want to use flows for use cases or blogs it can be refactored
    Chris White

    Chris White

    2 years ago
    many of our users use prefect for proprietary use cases, so it’d be nice to have some other in-depth public-facing examples