Skip to content

GH-55653: [Python][Docs] Correction for operator list of Array/Scalar - #55654

Merged
rok merged 1 commit into
apache:mainfrom
tadeja:array-scalar-operators
Nov 17, 2026
Merged

rok merged 1 commit into
apache:mainfrom
tadeja:array-scalar-operators

Conversation

@tadeja

@tadeja tadeja commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Rationale for this change

Fixes #55653. Docstring correction - replacing the non-implemented Python arithmetic operator % with the missing*.

What changes are included in this PR?

Docstring correction in array.pxi and scalar.pxi and compute.rst

Are these changes tested?

Yes

Are there any user-facing changes?

No other than docs correction

Was AI used for this PR?

In accordance to the AI generation guidelines, please disclose below whether and how AI was used in this PR.

PR code and description written by:

  • Human
  • AI

Reviewed before submission by:

  • Human
  • AI
  • Not reviewed

@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #55653 has been automatically assigned in GitHub to PR creator.

@tadeja

tadeja commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

@github-actions crossbow submit preview-docs

@github-actions

Copy link
Copy Markdown

Revision: a24d0fa

Submitted crossbow builds: ursacomputing/crossbow @ actions-34ee1dfa1e

Task Status
preview-docs GitHub Actions

@tadeja

tadeja commented Nov 17, 2026

Copy link
Copy Markdown
Member Author

So far: https://arrow.apache.org/docs/python/compute.html#standard-python-operators

i.e. arithmetic (+, -, /, %, **),

After replacing replacing non-implemented % with the missing*:
preview-docs: Compute Functions - Standard python operators

i.e. arithmetic (+, -, *, /, **)

preview-docs: pyarrow.Scalar

preview-docs: pyarrow.array

@tadeja
tadeja marked this pull request as ready for review November 17, 2026 16:54
Copilot AI balanced review requested due to automatic review settings November 17, 2026 16:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues block this documentation-only correction to PyArrow’s arithmetic operator lists.

No open issues 🎉

What changed in this PR

Corrects PyArrow’s documented arithmetic operators for arrays and scalars, addressing #55653. This is a documentation-only change with no runtime behavior changes.

Changes:

  • Replaces unsupported % with supported * in the array and scalar docstrings.
  • Applies the same correction to the Python compute guide.
File Description
python/​pyarrow/​scalar.pxi Corrects the scalar arithmetic operator list.
python/​pyarrow/​array.pxi Corrects the array arithmetic operator list.
docs/​source/​python/​compute.rst Aligns the compute guide with the supported operators.

Review effort: Balanced

@rok
rok merged commit 0b70b0d into apache:main Nov 17, 2026
42 of 43 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Python][Docs] Array/Scalar operators docstring lists % instead of *

3 participants