I have a pandas DataFrame df:
pandas
DataFrame
df
import pandas as pd data = {\"Name\": [\"AAAA\", \"BBBB\"], \"C1\": [25, 12],
df.query( "0 < C1 < 20 and 0 < C2 < 20 and 0 < C3 < 20" )
or
df.query("0 < @df < 20").dropna()
Using @foo in df.query refers to the variable foo in the environment.
@foo
df.query
foo