Skip to content

"not equal" querying #179

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

You must be logged in to vote

This is now supported in the latest version v0.3.0

you can call iloc, loc and query with conditions. For example, this works in query:

df.query({ condition: df[“A”].ge(5) })

// Chaining multiple conditions work too:

df.query({ condition: df[“A”].ge(5).and(df[“B”].eq(50) })

An array of boolean mask/values of the same length as the DataFrame can be used as well.

cc @spleshakov

Replies: 2 comments 4 replies

Comment options

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

@risenW
Comment options

@spleshakov
Comment options

@risenW
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by risenW
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