Created
April 20, 2022 06:52
-
-
Save dominiquesydow/5300d3caf2605932464a30c5ef124130 to your computer and use it in GitHub Desktop.
Filter rows in pandas with query()
If the column name "a" was called "a a", the query would look like this:
df.query("`a a` < 4 and c < 4")
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good to know. Though I do prefer if there's just one way to do something, even if clunky. Does it still work if there's a space in the name?