Skip to content

accept duckdb for param.DataFrame #1040

@matipos2

Description

@matipos2

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions