I have been using Pandas for more than 3 months and I have an fair idea about the dataframes accessing and querying etc.
I have got an requirement wherein I wanted t
@volodymyr is right, but the thing he forgets is that you need to set engine='python' to expression to work.
Example:
>>> pd_df.query('column_name.str.contains("abc")', engine='python')
Here is more information on default engine ('numexpr') and 'python' engine. Also, have in mind that 'python' is slower on big data.