How can I use column names in pandas query
or eval
method when the column name has .
in it. For example, the dataframe has .
in its column name first.last
df = pd.DataFrame({'first.last':[10, 20, 30, 40]})
As a result I can't run the following expression
df.query('first.last < 30')
Are there any ways to mitigate this or work around this ? Thanks