Skip to content

Commit db9c769

Browse files
committed
Update docstring query about quoting backtick variables
1 parent ff463ca commit db9c769

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/core/frame.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2965,7 +2965,8 @@ def query(self, expr, inplace=False, **kwargs):
29652965
expr : str
29662966
The query string to evaluate. You can refer to variables
29672967
in the environment by prefixing them with an '@' character like
2968-
``@a + b``.
2968+
``@a + b``. You can refer to column names with spaces by quoting
2969+
them in backticks like ```a a` + b``.
29692970
inplace : bool
29702971
Whether the query should modify the data in place or return
29712972
a modified copy.

0 commit comments

Comments
 (0)