[
https://issues.apache.org/jira/browse/ARROW-2572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16471776#comment-16471776
]
Antoine Pitrou commented on ARROW-2572:
---------------------------------------
Actually, {{Table.from_arrays}} allows you to pass columns (instead of arrays)
and an optional schema. Since that's not very discoverable, we may want to add
a {{Table.from_columns}} alias to that method. Also, the {{Table.from_arrays}}
docstring doesn't mention the schema parameter.
> [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
> Affects Versions: 0.9.0
> Reporter: Thomas Buhrmann
> Priority: Minor
> Labels: beginner
>
> 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)