[
https://issues.apache.org/jira/browse/ARROW-13914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410731#comment-17410731
]
Krisztian Szucs edited comment on ARROW-13914 at 9/6/21, 4:44 PM:
------------------------------------------------------------------
For example I'd like to be able to (not with the exact API):
{code}
ty = pa.infer_type(data, how="strict|promote|union|...",
sample="all|100|0.1|...")
pa.array(data, type=ty)
{code}
was (Author: kszucs):
For example I'd like to be able to:
{code}
ty = pa.infer_type(data, how="strict|promote|union|...",
sample="all|100|0.1|...")
pa.array(data, type=ty)
{code}
> [C++][Python] Optimize type inference when converting from python values
> ------------------------------------------------------------------------
>
> Key: ARROW-13914
> URL: https://issues.apache.org/jira/browse/ARROW-13914
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Reporter: Krisztian Szucs
> Priority: Minor
>
> Currently we use an extensive set of checks to infer arrow type from python
> sequences.
> Last time I checked using asv, the inference part had a significant overhead.
> We could try other approaches to speed-up the type inference, see comments:
> https://github.com/apache/arrow/pull/11076#discussion_r702808196
--
This message was sent by Atlassian Jira
(v8.3.4#803005)