pitrou commented on PR #40408:
URL: https://github.com/apache/arrow/pull/40408#issuecomment-1984711538

   This is not how you would create a Map array with PyArrow. Example:
   ```python
   >>> ty = pa.map_(pa.int8(), pa.int32())
   >>> a = pa.array([{1: 1000, 2: 10000}, {3: -1000}], type=ty)
   >>> a
   <pyarrow.lib.MapArray object at 0x7f7ab948dd80>
   [
     keys:
     [
       1,
       2
     ]
     values:
     [
       1000,
       10000
     ],
     keys:
     [
       3
     ]
     values:
     [
       -1000
     ]
   ]
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to