wjones127 commented on issue #12396:
URL: https://github.com/apache/arrow/issues/12396#issuecomment-1035660882
@rileyhun Does the following snippet fail for you? I'm see conversion of
that schema go through fine in this example.
```python
import pyarrow as pa
import pandas as pd
data = [[('x', 1.0), ('y', 0.0)], [('a', 2.0), ('b', 45.0)]]
ty = pa.map_(pa.string(), pa.float64())
inner = pa.array(data, type=ty)
array = pa.MapArray.from_arrays([0,1], ['one', 'two'], inner)
array = pa.MapArray.from_arrays([0,1], [1], array)
table = pa.table({'col': array})
array.type
# MapType(map<int64, map<string, map<string, double>>>)
table.to_pandas()
# col
# 0 [(1, [('one', [('x', 1.0), ('y', 0.0)])])]
```
--
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]