Closed neo-anderson closed 6 years ago
query
is just pandas.DataFrame.query. I think changing it would come as a surprise to pandas users. Plus can make use of numexpr
if available. So you have to add a prefix @
to the variables.
df >> query('x > @y')
This worked perfectly. Thanks!
Hi !
Not sure if this is a technical limitation, but query function is not able to access the values of variables. define function does not have this problem.
This works.
This doesn't.
For now, I'm doing this instead -
In the case of define, it works as expected.