Skip to content

Bar plot not grouped when setting y #1667

@maximlt

Description

@maximlt

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions