or operator for querying #170
Answered
by
risenW
spleshakov
asked this question in
Q&A
-
hello, i'm working on a dataframe that looks like so (simplified):
I'd like to filter it by column
Is there a method to achieve this? Thank you! |
Beta Was this translation helpful? Give feedback.
Answered by
risenW
Apr 21, 2021
Replies: 1 comment 2 replies
-
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. 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 }) |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
spleshakov
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: