I have a dataframe with spaces in column names. I am trying to use query method to get the results. It is working fine with \'c\' column but getting error for \
query
From pandas 0.25 onward you will be able to escape column names with backticks so you can do
0.25
a.query('`a b` == 5')