You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2019/03/13 22:21:00 UTC
[jira] [Updated] (ARROW-4637) [Python] Avoid importing Pandas
unless necessary
[ https://issues.apache.org/jira/browse/ARROW-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated ARROW-4637:
----------------------------------
Labels: pull-request-available (was: )
> [Python] Avoid importing Pandas unless necessary
> ------------------------------------------------
>
> Key: ARROW-4637
> URL: https://issues.apache.org/jira/browse/ARROW-4637
> Project: Apache Arrow
> Issue Type: Improvement
> Components: Python
> Affects Versions: 0.12.0
> Reporter: Antoine Pitrou
> Assignee: Wes McKinney
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.13.0
>
>
> Importing PyArrow is more than twice slower when Pandas is installed:
> {code}
> $ time python -c "import pyarrow"
> real 0m0,360s
> user 0m0,305s
> sys 0m0,037s
> $ time python -c "import sys; sys.modules['pandas'] = None; import pyarrow"
> real 0m0,144s
> user 0m0,124s
> sys 0m0,020s
> {code}
> We should only import Pandas when necessary, e.g. when asked to ingest or create Pandas data.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)