holoviz / holoviz/hvplot

Don't supply a list with a single grouper to avoid this warning.

Open
#1,027 0 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

Thanks for contacting us! Please read and follow these instructions carefully, then delete this introductory text to keep your issue easy to read. Note that the issue tracker is NOT the place for usage questions and technical assistance; post those at [Discourse](https://discourse.holoviz.org) instead. Issues without the required information below may be closed immediately.

#### ALL software version info
(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
hvPlot Version : 0.8.0.
pandas Version : 1.5.3.
bokeh Version : 2.4.3.

Selected Jupyter core packages...
IPython : 7.31.1
ipykernel : 6.15.2
ipywidgets : 7.6.5
jupyter_client : 7.3.4
jupyter_core : 4.11.1
jupyter_server : 1.18.1
jupyterlab : 3.4.4
nbclient : 0.5.13
nbconvert : 6.4.4
nbformat : 5.5.0
notebook : 6.4.12
qtconsole : 5.2.2
traitlets : 5.1.1

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

C:\Users\shouk\anaconda3\lib\site-packages\holoviews\core\data\pandas.py:221: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning.
data = [(k, group_type(v, **group_kwargs)) for k, v in
C:\Users\shouk\anaconda3\lib\site-packages\holoviews\core\data\pandas.py:221: FutureWarning: In a future version of pandas, a length 1 tuple will be returned when iterating over a groupby with a grouper equal to a list of length 1. Don't supply a list with a single grouper to avoid this warning.
data = [(k, group_type(v, **group_kwargs)) for k, v in

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

```
import hvplot.pandas
from bokeh.sampledata.sprint import sprint as df

boxplot = df.hvplot.box(y='Time', by='Medal', height=400, width=400, legend=False)
boxplot

```

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

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

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.