I have a dataframe like this
df=pd.DataFrame([1,2,3],columns=['a\\b'])
a\b
0 1
1 2
2 3
and I want to evaluate as expression like 'a\b<2' on this dataframe.
df.eval('a\\b<2')
When I do that I receive the following error message:
a \b <2
^
SyntaxError: unexpected character after line continuation character
Does anyone know how can I handle this sittuation? I can't change the column name because this is how the data comes from the datasource (and OPC server).