Skip to content

Commit 9b52a06

Browse files
committed
Update docstring query about quoting backtick variables
1 parent 1d0d278 commit 9b52a06

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
@@ -3008,7 +3008,8 @@ def query(self, expr, inplace=False, **kwargs):
30083008
expr : string
30093009
The query string to evaluate. You can refer to variables
30103010
in the environment by prefixing them with an '@' character like
3011-
``@a + b``.
3011+
``@a + b``. You can refer to column names with spaces by quoting
3012+
them in backticks like ```a a` + b``.
30123013
inplace : bool
30133014
Whether the query should modify the data in place or return
30143015
a modified copy

0 commit comments

Comments
 (0)