Skip to content

API Reference parrot.tools.dataset_manager.csv_reader

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

parrot.tools.dataset_manager.csv_reader

View source

CSV-to-markdown converter for DatasetManager file loading.

Function csv_to_markdown

Convert a CSV file to a clean markdown table.

csv_to_markdown(path: Union[str, Path], max_rows: int = 200, separator: Optional[str] = None, **kwargs) -> str

Parameter Type Default Description
path Union[str, Path] Path to the CSV file.
max_rows int 200 Maximum rows to include (truncates with note).
separator Optional[str] None Column separator. Auto-detected if None.
**kwargs {} Passed to pandas.read_csv().

Returns: str — Markdown string with table header and data.

Function csv_to_structural_summary

Return a brief structural summary of a CSV file.

csv_to_structural_summary(path: Union[str, Path]) -> str

Parameter Type Default Description
path Union[str, Path] Path to the CSV file.

Returns: str — Summary string with file info.

Attribute logger

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