[ 
https://issues.apache.org/jira/browse/ARROW-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16866393#comment-16866393
 ] 

Joris Van den Bossche commented on ARROW-2572:
----------------------------------------------

The {{Table.from_arrays}} nowadays clearly mentions that it accepts both arrays 
as columns: 
https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.from_arrays
 (and also the schema is now mentioned in the docstring).

Of course, when looking for a method to create a Table from columns, I agree a 
{{from_columns}} is certainly more discoverable. But it might also be API 
clutter ..

Would we want to make it an exact alias? Or actually a separate function that 
is more strict (not allowing a list of arrays)? Because for a list of columns, 
you would not necessarily need to pass the column names (or schema), as is 
required in {{from_arrays}}.

> [Python] Add factory function to create a Table from Columns and Schema.
> ------------------------------------------------------------------------
>
>                 Key: ARROW-2572
>                 URL: https://issues.apache.org/jira/browse/ARROW-2572
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>    Affects Versions: 0.9.0
>            Reporter: Thomas Buhrmann
>            Priority: Minor
>              Labels: beginner
>             Fix For: 0.14.0
>
>
> At the moment it seems to be impossible in Python to add custom metadata to a 
> Table or Column. The closest I've come is to create a list of new Fields (by 
> "appending" metadata to existing Fields), and then creating a new Schema from 
> these Fields using the Schema factory function. But I can't see how to create 
> a new table from the existing Columns and my new Schema, which I understand 
> would be the way to do it in C++?
> Essentially, wrappers for the Table's Make(...) functions seem to be missing.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to