Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad error message for missing kwarg in labels #1280

Open
ahuang11 opened this issue Feb 14, 2024 · 0 comments
Open

Bad error message for missing kwarg in labels #1280

ahuang11 opened this issue Feb 14, 2024 · 0 comments
Labels
type: bug Something isn't working

Comments

@ahuang11
Copy link
Collaborator

import pandas as pd
import hvplot.pandas
import holoviews as hv

df = pd.read_csv(
    "https://raw.githubusercontent.com/ajstarks/dubois-data-portraits/master/challenge/2024/challenge03/data.csv",
    header=None,
    names=["year", "acres"],
)
df.loc[11, "year"] = 1886  # from 1888 to 1886
df_0 = df.iloc[0]
df_n = df.iloc[-1]

df_0.hvplot.labels()
File [~/repos/hvplot/hvplot/converter.py:1645](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/sketches/~/repos/hvplot/hvplot/converter.py:1645), in HoloViewsConverter._process_chart_y(self, data, x, y, single_y)
   [1643](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/sketches/~/repos/hvplot/hvplot/converter.py:1643)         if len(num_ys) >= 1:
   [1644](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/sketches/~/repos/hvplot/hvplot/converter.py:1644)             ys = num_ys
-> [1645](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/sketches/~/repos/hvplot/hvplot/converter.py:1645)     y = ys[0] if len(ys) == 1 or single_y else ys
   [1646](https://file+.vscode-resource.vscode-cdn.net/Users/ahuang/repos/sketches/~/repos/hvplot/hvplot/converter.py:1646) return y

IndexError: list index out of range
@ahuang11 ahuang11 added TRIAGE type: bug Something isn't working and removed TRIAGE labels Feb 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant