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

[Python] Incorrect conversion from Numpy array when stride % itemsize != 0

    XMLWordPrintableJSON

Details

    Description

      In the example below, the input array has a stride that's not a multiple of the itemsize:

      >>> data = np.array([(42, True), (43, False)],
      ...:                dtype=[('x', np.int32), ('y', np.bool_)])
      ...:                
      ...:                                        
      >>> data['x']
      array([42, 43], dtype=int32)
      >>> pa.array(data['x'], type=pa.int32())
      <pyarrow.lib.Int32Array object at 0x7ff60a8415e8>
      [
        42,
        11009
      ]
      

      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: