Skip to content

DOC: operator wrapper names do not match math operators #53724

Closed
@mk0417

Description

@mk0417

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://github.com/pandas-dev/pandas/blob/v2.0.2/pandas/core/ops/docstrings.py

Documentation problem

Among flexible wrappers (add, sub, mul, div, mod, pow) to
arithmetic operators: +, -, *, /, //, %, **.

There are 6 wrapper names, but there are 7 operators

Suggested fix for documentation

It is better to add floordiv after div so that the names can match the operators in order
Among flexible wrappers (`add`, `sub`, `mul`, `div`, `floordiv`,`mod`, `pow`) to arithmetic operators: `+`, `-`, `*`, `/`, `//`, `%`, `**`.

Metadata

Metadata

Assignees

Labels

DocsNeeds TriageIssue that has not been reviewed by a pandas team member

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions