Skip to content

DuckDb reference example not working #1693

@MarcSkovMadsen

Description

@MarcSkovMadsen

Example from https://hvplot.holoviz.org/en/docs/latest/

Image
import duckdb
import hvplot.duckdb
from bokeh.sampledata.autompg import autompg_clean as df

df_duckdb = duckdb.from_df(df)
table = df_duckdb.groupby(['origin', 'mfr'])['mpg'].mean().sort_values().tail(5)
table.hvplot.barh('mfr', 'mpg', by='origin', stacked=True)
Traceback (most recent call last):
  File "/home/jovyan/repos/private/panel/script.py", line 6, in <module>
    table = df_duckdb.groupby(['origin', 'mfr'])['mpg'].mean().sort_values().tail(5)
            ^^^^^^^^^^^^^^^^^
AttributeError: This relation does not contain a column by the name of 'groupby'

duckdb==1.2.2
hvplot==0.11.2

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions