Skip to content

or operator for querying #170

Answered by risenW
spleshakov asked this question in Q&A
Apr 20, 2021 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

Hi @spleshakov , for now, there's no support for multiple conditions. But I see this is quite a useful feature, and I'll add it as a new feature.
A hacky and less efficient way, for now, will be to query and merge:

df1 = df.query({ column: "SERVICE_AREA_ID", is: "==", to: "MNS001" })
df2 = df.query({ column: "SERVICE_AREA_ID", is: "==", to: "MNS002" })
df3 = dfd.concat({ df_list: [df1, df2], axis: 0 })

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@risenW
Comment options

@eduardomanuel
Comment options

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