[ https://issues.apache.org/jira/browse/ARROW-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17661660#comment-17661660 ]
Rok Mihevc commented on ARROW-4637: ----------------------------------- This issue has been migrated to [issue #21172|https://github.com/apache/arrow/issues/21172] on GitHub. Please see the [migration documentation|https://github.com/apache/arrow/issues/14542] for further details. > [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 > > Time Spent: 6h 20m > Remaining Estimate: 0h > > 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 (v8.20.10#820010)