kosiew opened a new pull request, #1087: URL: https://github.com/apache/datafusion-python/pull/1087
# Which issue does this PR close? Partial fix for #1078 # Rationale for this change > Split up some of the html generation into a set of helper functions. The rendering logic for DataFrame HTML output was previously monolithic. By modularizing the generation of HTML structure, styles, and table rows into clearly named helper functions, we improve readability, testability, and long-term maintainability. This refactor lays the foundation for easier customization and potential future features like theming or enhanced interactivity. # What changes are included in this PR? - Extracted style definitions into `get_html_style_definitions()` - Moved the opening table tag into `get_html_table_opening()` - Separated table header generation into `get_html_table_header()` - Encapsulated array formatter creation logic in `create_batch_formatters()` - Delegated row and cell HTML generation to `get_html_table_rows()` and `format_table_cell()` - Moved JavaScript logic for expandable cells into `get_html_js_functions()` - Preserved original behavior with no changes to the rendered output # Are there any user-facing changes? No functional changes for end users. The generated HTML and behavior remain the same, but the underlying implementation is now modular and easier to maintain. <!-- If there are any breaking changes to public APIs, please add the `api change` label. --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: github-unsubscr...@datafusion.apache.org For additional commands, e-mail: github-h...@datafusion.apache.org