You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2022/01/04 15:01:49 UTC

[GitHub] [arrow] AlenkaF commented on pull request #12010: ARROW-6001 [Python]: Add from_pylist() and to_pylist() to pyarrow.Table to convert list of records

AlenkaF commented on pull request #12010:
URL: https://github.com/apache/arrow/pull/12010#issuecomment-1004884636


   I have corrected the code so that `pylist` is meant to be structured as a list of dicts, one dict per row. If the column name is missing from the schema or from the data, `None` is put in.
   
   If the schema is not given in `from_pylist(),` the keys from the first dictionary are used to define the names of the columns in the Table/RecordBatch.
   
   Also I saw that there are only a few examples added in the [docstrings](https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table). I think they are a great way to understand the codebase as they are easy to locate and to use. I would be happy to add them as a part of the [Documentation Improvements](https://issues.apache.org/jira/browse/ARROW-13407) or as a separate JIRA issue.


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org