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-unsubscr...@arrow.apache.org

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


Reply via email to