Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-9879

[Python] ChunkedArray.__getitem__ doesn't work with numpy scalars

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.0.0, 1.0.1
    • 2.0.0
    • Python

    Description

       

      {{import pyarrow as pa
      import numpy as np
      pa.chunked_array(pa.array([1,2]))[np.int32(0)]}}

      fails with error TypeError: key must either be a slice or integer.

      Attachments

        Issue Links

          Activity

            People

              uwe Uwe Korn
              uwe Uwe Korn
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 50m
                  1h 50m