You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Wes McKinney (JIRA)" <ji...@apache.org> on 2019/01/07 20:38:00 UTC

[jira] [Resolved] (ARROW-3911) [Python] Deduplicate datetime.date objects in Table.to_pandas internals

     [ https://issues.apache.org/jira/browse/ARROW-3911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Wes McKinney resolved ARROW-3911.
---------------------------------
    Resolution: Fixed

This was done in https://github.com/apache/arrow/commit/9b03947c4369cb1b4d82022df00629baf2b6eb00

> [Python] Deduplicate datetime.date objects in Table.to_pandas internals
> -----------------------------------------------------------------------
>
>                 Key: ARROW-3911
>                 URL: https://issues.apache.org/jira/browse/ARROW-3911
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>            Reporter: Wes McKinney
>            Assignee: Wes McKinney
>            Priority: Major
>             Fix For: 0.12.0
>
>
> https://github.com/apache/arrow/blob/master/cpp/src/arrow/python/arrow_to_pandas.cc#L631
> In Python 3, {{datetime.date}} objects are 32-bytes in addition to the {{PyObject*}}. So when there are many repeated dates, this will save a lot of memory in large DataFrame objects



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)