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

Add support for serializing polars DataFrame #7475

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

philippjfr
Copy link
Member

Partial fix for #7468

We additionally need to allow param.DataFrame to accept non-pandas DataFrames, either by default or as an option.

Copy link

codecov bot commented Nov 8, 2024

Codecov Report

Attention: Patch coverage is 55.55556% with 8 lines in your changes missing coverage. Please review.

Project coverage is 82.36%. Comparing base (773936d) to head (4344a39).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
panel/io/datamodel.py 55.55% 8 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7475   +/-   ##
=======================================
  Coverage   82.35%   82.36%           
=======================================
  Files         338      338           
  Lines       50957    50975   +18     
=======================================
+ Hits        41966    41985   +19     
+ Misses       8991     8990    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

panel/io/datamodel.py Outdated Show resolved Hide resolved
panel/io/datamodel.py Outdated Show resolved Hide resolved
@MarcSkovMadsen
Copy link
Collaborator

MarcSkovMadsen commented Nov 8, 2024

Partial fix for #7468

We additionally need to allow param.DataFrame to accept non-pandas DataFrames, either by default or as an option.

My vision for the DataFrame parameter is that there is a parameter that supports any kind of tabular data source including the ones supported by Narwhals. See narwhals-dev/narwhals#1289. This means broading the concept from DataFrame to Tabular or Columnar data source. Why can't I use a database as the remote backend for Tabulator? Or a .parquet file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants