Skip to content

Commit

Permalink
Fixed stat_pointdensity with facetting
Browse files Browse the repository at this point in the history
fixes #808
  • Loading branch information
has2k1 committed Jun 24, 2024
1 parent 812a5ab commit 50daff4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ title: Changelog
- Fix layers 3 and above not to overlap the axis lines if there are any
({{< issue 798 >}}).

- Fix [](:stat:`~plotnine.stat_pointdensity`) to work with facetting. It is
possible aftected other stats. ({{< issue 808 >}})

## v0.13.6
(2024-05-09)

Expand Down
1 change: 1 addition & 0 deletions plotnine/stats/stat.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ def compute_panel(
stats = []
for _, old in data.groupby("group"):
new = cls.compute_group(old, scales, **params)
new.reset_index(drop=True, inplace=True)
unique = uniquecols(old)
missing = unique.columns.difference(new.columns)
idx = [0] * len(new)
Expand Down

0 comments on commit 50daff4

Please sign in to comment.