Skip to content

API Reference parrot_tools.dftohtml

github-actions[bot] edited this page Dec 2, 2026 · 4 revisions

parrot_tools.dftohtml

View source

DataFrame to HTML Tool - Convert pandas DataFrames to styled HTML tables.

Alias AbstractTool

Re-exported from parrot_tools.abstract.AbstractTool.

Class DfToHtmlArgs

Arguments schema for DataFrame to HTML conversion.

Fields:

Field Type Default Description
dataframe Any Pandas DataFrame to convert to HTML
filename Optional[str] None Optional filename to save the HTML file (without extension)
table_id Optional[str] None Optional HTML table ID attribute
css_classes str 'dataframe table table-striped table-hover' CSS classes to apply to the table
include_index bool True Whether to include the DataFrame index in the HTML
escape bool True Whether to escape HTML characters in the data (disable only for pre-sanitized content)
max_rows Optional[int] None Maximum number of rows to display (None for all rows)
max_cols Optional[int] None Maximum number of columns to display (None for all columns)
table_attributes Optional[str] None Additional HTML table attributes as string
include_bootstrap bool True Whether to include Bootstrap CSS for styling
custom_css Optional[str] None Custom CSS styles to include

Class DfToHtmlTool

Tool for converting pandas DataFrames to styled HTML tables.

This tool takes a pandas DataFrame and converts it to a well-formatted HTML table with optional CSS styling, Bootstrap integration, and file saving capabilities.

Parameter Type Default Description
artifact_store Any None
**kwargs {}

Attributes:

Attribute Type Description
name str
description str
return_direct bool

Alias ExportsToStoreMixin

Re-exported from parrot_tools._exports.ExportsToStoreMixin.

Architecture

Clients

Bots & Agents

Memory

Knowledge

Tools & Toolkits

Flows

Experts

Skills

Stores & Loaders

MCP & A2A

Server & APIs

Integrations

Outputs & A2UI

Prompts

Security

Operations

Migration

SDD Tooling

LLM Wiki

Deployment

Decisions

API Reference

Clone this wiki locally