From pandas 0.25
onward you will be able to escape column names with backticks so you can do
a.query('`a b` == 5')
More Related Contents:
- SQL / Pandas equivalent
- Pandas analogue to SQL MINUS / EXCEPT operator, using multiple columns
- How to deal with SettingWithCopyWarning in Pandas
- Using Pandas to pd.read_excel() for multiple worksheets of the same workbook
- How to add pandas data to an existing csv file?
- How to explode a list inside a Dataframe cell into separate rows
- Combine two pandas Data Frames (join on a common column)
- Pandas split column into multiple columns by comma
- Repeat rows in a pandas DataFrame based on column value
- Accessing every 1st element of Pandas DataFrame column containing lists
- How to deal with multi-level column names downloaded with yfinance
- Replace all occurrences of a string in a pandas dataframe (Python)
- Running get_dummies on several DataFrame columns?
- Python – How to convert JSON File to Dataframe
- How to remove timezone from a Timestamp column in a pandas dataframe
- Pandas lookup from one of multiple columns, based on value
- How to add a suffix (or prefix) to each column name?
- How to delete multiple pandas (python) dataframes from memory to save RAM?
- Subtract two columns in dataframe
- Capitalize first letter of each word in a dataframe column
- Compute the running (cumulative) maximum for a series in pandas
- Get total of Pandas column
- pandas divide row value by aggregated sum with a condition set by other cell
- Updating a value in a pandas dataframe in an iterrows loop
- Got continuous is not supported error in RandomForestRegressor
- How to convert string representation of dictionary in Pandas DataFrame to a new columns?
- Get the row corresponding to the max in pandas GroupBy [duplicate]
- Copy text between parentheses in pandas DataFrame column into another column
- Get frequency of item occurrences in a column as percentage [duplicate]
- Pandas explode multiple columns [duplicate]