diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 5ef663564a016..9e0844f255eb2 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -4554,8 +4554,8 @@ def query(self, expr: str, *, inplace: bool = False, **kwargs) -> DataFrame | No For example, ```it's` > `that's``` will raise an error, as it forms a quoted string (``'s > `that'``) with a backtick inside. - See also the Python documentation about lexical analysis - (https://docs.python.org/3/reference/lexical_analysis.html) + See also the `Python documentation about lexical analysis + `__ in combination with the source code in :mod:`pandas.core.computation.parsing`. Examples