Closed
Description
Pandas version checks
- I have checked that the issue still exists on the latest versions of the docs on
main
here
Location of the documentation
- https://pandas.pydata.org/docs/reference/api/pandas.eval.html
- https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.eval.html
- https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.query.html
Documentation problem
- (1) doesn't cover all supported operators within the
expr
string, e.g.,<
orsin
e.t.c., - (2) doesn't explain how
expr
should look like. Admittedly it links to (1) but only inkwargs
section. - (3) doesn't explain how
expr
should look like, albeit it explains how to use columns within theexpr
. Admittedly it links to (1) but only inkwargs
section.
Suggested fix for documentation
- Expand (1) to cover all supported operators and functions
- To
expr
sections of (2) and (3) add links leading to (1) for description ofexpr
- Move description of
expr
from (3) to (2) and add another link to that section leading to (2) (to explain how one can use columns)- Alternatively just add link to
expr
section of (2) leading to (3) (to explain columns) instead. Albeit personally i feel it is easier to have theeval
as main source andquery
link there asquery
is equivalent ofdf[df.eval(...)]
- Alternatively just add link to