[
https://issues.apache.org/jira/browse/ARROW-14060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17418755#comment-17418755
]
Weston Pace commented on ARROW-14060:
-------------------------------------
I thought I could already do this by specifying the data type:
{code:python}
arr = pa.array([<uuid-object>, ..], my_uuid_extension_type)
{code}
So I was just thinking we need:
{code:python}
tab = pa.Table.from_dict(my_table, {<uuid-type>: my_uuid_extension_type })
{code}
> [Python] Allow Table.from_pydict to specify a type mapper for extension types
> -----------------------------------------------------------------------------
>
> Key: ARROW-14060
> URL: https://issues.apache.org/jira/browse/ARROW-14060
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Weston Pace
> Assignee: Weston Pace
> Priority: Major
>
> An example use case would be registering a type mapper that maps from UUID to
> a custom extension type or registering an extension type for `complex`.
> However, it could be used for builtin types as well (e.g. mapping all `int`
> to `pa.int8()`)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)