holoviz / holoviz/hvplot

kde plot `'y'` argument ends up being 'x' label - rename it to `columns`?

Open
#1,245 3 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

#### ALL software version info

pandas: 2.1.4
hvplot: 0.9.1

#### Description of expected behavior and the observed behavior

The `'y'` argument determines which column(s) to compute distributions of.

It's a bit counter-intuitive, then, that the x-label ends up being the `y` argument

Don't know what the simplest solution is - rename `y` for this plot, perhaps to `columns`?

#### Complete, minimal, self-contained example code that reproduces the issue

```
df = pd.DataFrame({'a': [2,4,2,5,6,7,3,6,7]})
df.hvplot.kde(y='a')
```

#### Stack traceback and/or browser JavaScript console output

#### Screenshots or screencasts of the bug in action

![image](https://github.com/holoviz/hvplot/assets/33491632/828a7b96-6e02-404c-a38d-11709c94cdfb)

- [x] I may be interested in making a pull request to address this

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.