df.query('ZIP_(3-DIGIT) < 100')
returns:
ValueError: "ZIP_" is not a supported function
df.query('@ZIP_(3-DIGIT) < 100')
returns:
ValueError: "__pd_eval_local_ZIP_" is not a supported function
ZIP_(3-DIGIT) is int64
I can use df[df['ZIP_(3-DIGIT)'] < 100] to achieve the desired result, but I would like to learn what I was doing wrong.
df = pd.DataFrame({'ZIP_(3-DIGIT)': np.arange(0,10000)})