Skip to content

Commit 1b6d717

Browse files
authored
DOC: "list" is not a keyword - .query (#59236)
Fix documentation
1 parent 61e209e commit 1b6d717

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/frame.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4473,7 +4473,7 @@ def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | No
44734473
or punctuations (besides underscores) or starting with digits must be
44744474
surrounded by backticks. (For example, a column named "Area (cm^2)" would
44754475
be referenced as ```Area (cm^2)```). Column names which are Python keywords
4476-
(like "list", "for", "import", etc) cannot be used.
4476+
(like "if", "for", "import", etc) cannot be used.
44774477
44784478
For example, if one of your columns is called ``a a`` and you want
44794479
to sum it with ``b``, your query should be ```a a` + b``.

0 commit comments

Comments
 (0)