Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
Description
From https://github.com/apache/arrow/issues/14116
Creating a MapArray from a python sequence currently requires lists of tuples as values:
arr = pa.array([[('a', 1), ('b', 2)], [('c', 3)]], pa.map_(pa.string(), pa.int64()))
While I think it makes sense that the following could also work (using dicts instead):
arr = pa.array([{'a': 1, 'b': 2}, {'c': 3}], pa.map_(pa.string(), pa.int64()))
Attachments
Issue Links
- links to