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

[Python] Struct array slicing defective

    Details

      Description

      >>> arr = pa.array([(1, 2.0), (3, 4.0), (5, 6.0)], type=pa.struct([pa.field('x', pa.int16()), pa.field('y', pa.float32())]))
      >>> arr
      <pyarrow.lib.StructArray object at 0x7fdfbe7916d8>
      [
        {'x': 1, 'y': 2.0},
        {'x': 3, 'y': 4.0},
        {'x': 5, 'y': 6.0}
      ]
      >>> arr[1:]
      <pyarrow.lib.StructArray object at 0x7fdfbe791f48>
      [
        {'x': 1, 'y': 2.0},
        {'x': 3, 'y': 4.0}
      ]
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pitrou Antoine Pitrou
                Reporter:
                pitrou Antoine Pitrou
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: