AlenkaF commented on issue #34574:
URL: https://github.com/apache/arrow/issues/34574#issuecomment-1477545794

   If I am reading the C++ code correctly, this is the current design in the 
conversion of the lists
   
https://github.com/apache/arrow/blob/69118b2d26f2fbbbe65ad30dbe167d74b70fe791/python/pyarrow/src/arrow/python/arrow_to_pandas.cc#L735-L770
   
   We do, however, store the `pandas_dtype` in schema metadata:
   ```python
   >>> table = pa.Table.from_pandas(df)
   >>> table.schema.metadata
   {b'pandas': b'{"index_columns": [{"kind": "range", "name": null, "start": 0, 
"stop": 1, "step": 1}], "column_indexes": [{"name": null, "field_name": null, 
"pandas_type": "unicode", "numpy_type": "object", "metadata": {"encoding": 
"UTF-8"}}], "columns": [{"name": "a", "field_name": "a", "pandas_type": 
"list[int64]", ...
   ```
   


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