Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-3911

[Python] Deduplicate datetime.date objects in Table.to_pandas internals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • Python
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              wesm Wes McKinney
              wesm Wes McKinney
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: