jorisvandenbossche commented on issue #14116:
URL: https://github.com/apache/arrow/issues/14116#issuecomment-1835653242

   In the meantime, this conversion of dicts to map type has been implemented: 
   
   * https://github.com/apache/arrow/pull/14547
   
   and thus my minimal example above now works:
   
   ```
   In [9]: arr = pa.array([{'a': 1, 'b': 2}, {'c': 3}], pa.map_(pa.string(), 
pa.int64()))
   
   In [10]: arr
   Out[10]: 
   <pyarrow.lib.MapArray object at 0x7f8b4e93d8a0>
   [
     keys:
     [
       "a",
       "b"
     ]
     values:
     [
       1,
       2
     ],
     keys:
     [
       "c"
     ]
     values:
     [
       3
     ]
   ]
   ```
   
   So this issue can be closed now, I think.


-- 
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