Skip to content

How to perform multiple .where operations with the same condition efficiently #2330

Answered by maartenbreddels
xeladsn asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

it is not eager, so this should only evaluate my_condition once if you do a particular operation. If my_condition is expensive, you could consider a materialize on it.
Does that help?

Regards,

Maarten

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@xeladsn
Comment options

Answer selected by xeladsn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants