https://prefect.io logo
Title
i

itay livni

10/24/2019, 4:25 AM
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?
c

Chris White

10/24/2019, 2:15 PM
what version of prefect are you using? I believe this was fixed in one of the latest releases
i

itay livni

10/24/2019, 2:59 PM
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.
💯 2
c

Chris White

10/24/2019, 3:28 PM
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

10/24/2019, 3:29 PM
Upgraded to 0.6.7. All good
:marvin: 2
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.
c

Chris White

10/24/2019, 3:39 PM
very cool, will you be able to open source / share any of this code when you’re done?
i

itay livni

10/24/2019, 3:42 PM
I've been thinking about that. It's worth a discussion. The main problem is all the credentials to various api's
c

Chris White

10/24/2019, 3:44 PM
yea that’s fair, you could abstract those as either secrets or environment variables
i

itay livni

10/24/2019, 3:44 PM
But if you want to use flows for use cases or blogs it can be refactored
c

Chris White

10/24/2019, 3:47 PM
many of our users use prefect for proprietary use cases, so it’d be nice to have some other in-depth public-facing examples