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

[Python] Fix indexing implementations

    XMLWordPrintableJSON

Details

    Description

      A number of __getitem__ implementations handle negative or out-of-bounds indices improperly, for example:

      >>> a = pa.array([11,12,13])
      >>> a[-6]
      11
      >>> a[-15]
      11
      >>> a[4]
      NA
      >>> a[3]
      NA
      >>> a[1111]
      NA
      

      Attachments

        Issue Links

          Activity

            People

              apitrou Antoine Pitrou
              apitrou Antoine Pitrou
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: