holoviz / holoviz/param

accept duckdb for param.DataFrame

Open
#1,040 11 comments 2 reactions 0 assignees View on GitHub
type-feature
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

#### Is your feature request related to a problem? Please describe.
With panel I'm building a app. The data for the app comes from the duckdb.
I'm implementing the `DataStore` class. The `data` attribute is built as `data = param.DataFrame()`.
The problem is that `param.DataFrame` accepts only `pandas.DataFrame`, but with duckdb I have `DuckDBPyRelation`, it could be also `DuckDBConnection`.

#### Describe the solution you'd like
I would like it to work like in `panel` and `hvplot`. So I can use the same supported source types with params like in the other parts of the holoviz ecosystems.

#### Describe alternatives you've considered
You can always convert the data object into pandas, but it's not what you always want. What if you have huge data volume and you don't want to put all of it into memory?

#### Additional context
It would be nice to have fully consistency between param and `panel`, `hvplot`. So, if I can have `anydf.hvplot.any_plot(..)`, why I can't have `data = param.DataFrame(anydf)`?

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.