Skip to content

Commit

Permalink
DOC: "list" is not a keyword - .query (#59236)
Browse files Browse the repository at this point in the history
Fix documentation
  • Loading branch information
ritwizsinha committed Jul 12, 2024
1 parent 61e209e commit 1b6d717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -4473,7 +4473,7 @@ def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | No
or punctuations (besides underscores) or starting with digits must be
surrounded by backticks. (For example, a column named "Area (cm^2)" would
be referenced as ```Area (cm^2)```). Column names which are Python keywords
(like "list", "for", "import", etc) cannot be used.
(like "if", "for", "import", etc) cannot be used.
For example, if one of your columns is called ``a a`` and you want
to sum it with ``b``, your query should be ```a a` + b``.
Expand Down

0 comments on commit 1b6d717

Please sign in to comment.