holoviz / holoviz/hvplot

Bar plot not grouped when setting y

Open
#1,667 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.4k
Forks
124
Avg merge
1d 18h
Merged PRs (30d)
1

Description

The two plots should be identical as the dataframe only contains the `"mean"` column.

```python
import hvplot.pandas # noqa

df = hvplot.sampledata.penguins("pandas")
df = df.groupby(["island", "sex"]).agg({"bill_length_mm": ["mean"]})
df.columns = df.columns.droplevel(0)

df.hvplot.bar() + df.hvplot.bar(y="mean")
```

Image

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.