Skip to content

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

Closed

Description

@tadeja

Describe the bug, including details regarding any error messages, version, and platform.

Operator docs listed supported operators in

arithmetic (+, -, /, %, **)

https://arrow.apache.org/docs/python/compute.html#standard-python-operators
https://arrow.apache.org/docs/python/generated/pyarrow.array.html
https://arrow.apache.org/docs/python/generated/pyarrow.Scalar.html#pyarrow.Scalar

However % is not implemented and * is missing, so it looks like a typo.

>>> import pyarrow as pa
>>> arr = pa.array([9,-9])
>>> arr * 3
<pyarrow.lib.Int64Array object at 0x1080eb640>
[
  27,
  -27
]
>>> arr % 3
Traceback (most recent call last):
  File "<python-input-5>", line 1, in <module>
    arr % 3
    ~~~~^~~
TypeError: unsupported operand type(s) for %: 'pyarrow.lib.Int64Array' and 'int'

(Found while working on #55264)

Component(s)

Documentation, Python

Activity

  1. changed the title [-][Python][Docs] Array/Scalar operators docstring lists `%` instead `*`[/-] [+][Python][Docs] Array/Scalar operators docstring lists `%` instead of `*`[/+] on Nov 17, 2026
  2. added this to the 27.0.0 milestone on Nov 17, 2026
  3. rok commented on Nov 17, 2026

    @rok
    Member

    Issue resolved by pull request 55654
    #55654

  4. added a commit that references this issue on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions