jorisvandenbossche commented on issue #14116:
URL: https://github.com/apache/arrow/issues/14116#issuecomment-1256401446
To boil down the issue to a minimal example, creating a MapArray from a
python sequence currently requires a list of tuples:
```
arr = pa.array([[('a', 1), ('b', 2)], [('c', 3)]], pa.map_(pa.string(),
pa.int64()))
```
While I think it certainly makes sense that the following could also work
(using dicts instead, which would avoid the manual conversion step from dicts
to list of tuples in advance):
```
arr = pa.array([{'a': 1, 'b': 2}, {'c': 3}], pa.map_(pa.string(),
pa.int64()))
```
I opened https://issues.apache.org/jira/browse/ARROW-17832 to track this.
--
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]