Skip to content

Add Configurable HTML Table Formatter for DataFusion DataFrames in Python #1100

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

Merged
merged 37 commits into from
Apr 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
a2df6d5
feat: add configurable HTML formatter for DataFrames
kosiew Apr 8, 2025
665c6b0
fix: update schema iteration in DataFrameHtmlFormatter to use correct…
kosiew Apr 8, 2025
d1b23a2
refactor: remove unused constant MAX_LENGTH_CELL_WITHOUT_MINIMIZE in …
kosiew Apr 8, 2025
42c7c45
refactor: improve HTML rendering structure in DataFrameHtmlFormatter
kosiew Apr 8, 2025
d9980c3
doc: enhance docstrings for DataFrameHtmlFormatter methods to clarify…
kosiew Apr 8, 2025
2f9d655
refactor: enhance DataFrameHtmlFormatter with customizable cell and h…
kosiew Apr 8, 2025
a352a34
refactor: enhance DataFrameHtmlFormatter with custom cell and header …
kosiew Apr 8, 2025
34f337e
doc: expand module docstring for DataFrameHtmlFormatter with usage ex…
kosiew Apr 8, 2025
ecab831
refactor: streamline HTML formatter by removing extensive docstring e…
kosiew Apr 8, 2025
622ed63
refactor: improve cell rendering logic in DataFrameHtmlFormatter by u…
kosiew Apr 8, 2025
0f98b38
refactor: enhance HTML representation in DataFrame by integrating lat…
kosiew Apr 8, 2025
2c3bd60
refactor: improve HTML formatting logic in DataFrame by separating da…
kosiew Apr 8, 2025
0208862
refactor: add debug utilities for HTML formatter integration testing …
kosiew Apr 8, 2025
67520e5
refactor: implement HTML formatter patch for DataFrame and enhance va…
kosiew Apr 8, 2025
b6bf5fe
fix: correct typo in file extension check for parquet files in test_w…
kosiew Apr 8, 2025
4069d80
test: add test for DataFrame._repr_html_ to validate HTML output stru…
kosiew Apr 8, 2025
4db14c0
refactor: remove monkeypatch for DataFrame._repr_html_ and associated…
kosiew Apr 8, 2025
312fd4a
refactor: simplify _repr_html_ method in DataFrame to directly call i…
kosiew Apr 8, 2025
9012239
refactor: remove debug utilities for HTML formatter integration in Da…
kosiew Apr 8, 2025
9495e90
refactor: remove debug print statements from DataFrameHtmlFormatter a…
kosiew Apr 8, 2025
a7a2a9c
refactor: streamline imports and enhance HTML formatter integration i…
kosiew Apr 8, 2025
1c6e189
refactor: remove redundant imports and debug print statements in HTML…
kosiew Apr 8, 2025
c837771
refactor: add reset_formatter function to reset global HTML formatter…
kosiew Apr 8, 2025
70faac2
refactor: enhance DataFrameHtmlFormatter initialization with paramete…
kosiew Apr 8, 2025
6419740
test: add custom cell builder test for HTML formatter with value-base…
kosiew Apr 8, 2025
603302d
test: enhance DataFrame HTML representation tests for structure and v…
kosiew Apr 8, 2025
0625b2f
feat: enhance DataFrameHtmlFormatter with shared styles support and r…
kosiew Apr 8, 2025
a55bfe0
refactor: update footer comment in DataFrameHtmlFormatter to clarify …
kosiew Apr 8, 2025
eb1fac4
test: enhance HTML representation test to accommodate span-wrapped va…
kosiew Apr 8, 2025
1eb28a2
docs: add usage examples to formatter functions in html_formatter.py
kosiew Apr 8, 2025
0f1b1e4
test: add HTML formatter tests for shared styles functionality
kosiew Apr 8, 2025
2d9b694
feat: add method to check if styles are loaded and enhance schema val…
kosiew Apr 8, 2025
43158e7
refactor: streamline custom cell builder in HTML formatter tests for …
kosiew Apr 8, 2025
86017a2
fix ruff errors
kosiew Apr 8, 2025
768f977
chore: update license header in html_formatter.py for compliance
kosiew Apr 8, 2025
2267243
refactor: improve HTML formatter tests by updating import statements …
kosiew Apr 8, 2025
b2b3782
fix clippy errors
kosiew Apr 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions python/datafusion/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
Expr,
WindowFrame,
)
from .html_formatter import configure_formatter
from .io import read_avro, read_csv, read_json, read_parquet
from .plan import ExecutionPlan, LogicalPlan
from .record_batch import RecordBatch, RecordBatchStream
Expand Down Expand Up @@ -76,6 +77,7 @@
"col",
"column",
"common",
"configure_formatter",
"expr",
"functions",
"lit",
Expand Down
Loading