[
https://issues.apache.org/jira/browse/ARROW-13914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17410681#comment-17410681
]
Krisztian Szucs edited comment on ARROW-13914 at 9/6/21, 3:29 PM:
------------------------------------------------------------------
We could do the same for {{pa.array([1, 2.])}} if it were raising a
{{pyarrow.lib.ArrowTypeError: Expected integer, got float}}
We could have different inference strategies with different
performance/convenience tradeoffs.
was (Author: kszucs):
We could do the same for {{pa.array([1, 2.])}} if it were raising a
{{pyarrow.lib.ArrowTypeError: Expected integer, got float}}
> [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)