Skip to content

Getting string[pyarrow] from experimental to production ready #8842

Open

Description

@MrPowers

Pandas 1.3 includes an experimental string[pyarrow] dtype that's much more memory efficient than object columns.

Rocklin made a video on this new dtype which shows how the string[pyarrow] type greatly reduced memory usage and query times. He shows a better than 2x query speed improvement in his little notebook example with string[pyarrow]. I ran some experimentation on my end and found that the string[pyarrow] type reduced the memory usage of an object column by 6.7x.

These are huge improvements and the progress is really exciting.

The purpose of this issue is to brainstorm the additional work that needs to be performed to get string[pyarrow] out of "experimental" and make it generally available. @mrocklin - can you share your thoughts on the challenges and the next steps?

Activity

  1. added
    needs triage
    on Mar 24, 2022
  2. mrocklin commented on Mar 24, 2022

    @mrocklin
    Member

    So, my experience with pyarrow string types was both amazing and terrible.

    The Good

    • The memory impact is huge
    • Performance can be nicer
    • The GIL is dropped
    • It's nicely typed
    • The memory impact is huge

    The bad

    • Lots of operations don't work (or didn't)
    • Slices of data, when pickled, carry along the entire dataset. This makes memory and communication performance terrible.

    What to do

    We should try things out and raise JIRA tickets upstream. The Arrow folks are pretty productive these days. We probably need to do some work and point them in the right direction.

    cc @cpcloud

  3. added
    discussion
    and removed
    needs triage
    on Mar 25, 2022
  4. self-assigned this
    on May 13, 2022
  5. mrocklin commented on Jun 7, 2022

    @mrocklin
    Member

    @jcrist can you give a summary of where we are on this and what a set of good next steps would be?

  6. added
    needs attention
    on Jul 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionneeds attention

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions