has2k1 / has2k1/plotnine

geom_violin memory consumption

Open
#430 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement Performance
Dominant language
Python
Stars
4.8k
Forks
254
Avg merge
10h 35m
Merged PRs (30d)
9

Description

Compared with geom_boxplot(), geom_violin() seems to consume an unreasonable amount of memory. I get this error trying to plot a 70091 x 2 dataframe:

Unable to allocate 36.6 GiB for an array with shape (70091, 70091) and data type float64

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing geom_violin() with the reported 70091 x 2 dataframe and compare its memory behavior with geom_boxplot(). The issue names no source file or test; done means the violin plot no longer attempts to allocate a 70091 x 70091 array or otherwise consumes unreasonable memory for this input.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.