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

[Python] Union array slicing is defective

    XMLWordPrintableJSON

Details

    Description

      >>> a = pa.UnionArray.from_sparse(pa.array([0,1,1], type=pa.int8()), [pa.array(["a", "b", "c"]), pa.array([2,3,4])])
      >>> a
      <pyarrow.lib.UnionArray object at 0x7fe9381304a8>
      [
        'a',
        3,
        4
      ]
      >>> a[1:]
      <pyarrow.lib.UnionArray object at 0x7fe939409598>
      [
        2,
        3
      ]
      

      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: