CSV Analyzer Pack
★Trustedv1.0.0MIT✔Verified88by AgentNode · published 25 days ago · toolpack
Analyze, filter, and transform CSV data with pandas-powered tools.
Wraps pandas to provide CSV ingestion, column stats, filtering, and export for AI agents.
Quick Start
agentnode install csv-analyzer-packUsage
From packagefrom csv_analyzer_pack.tool import run
result = run(
capability="analyze_csv",
params={
"file_path": "/tmp/sales_2025.csv",
"operations": [
{"type": "group_by", "column": "region"},
{"type": "aggregate", "column": "revenue", "functions": ["sum", "mean", "count"]},
{"type": "sort", "by": "revenue_sum", "ascending": False}
]
}
)
print(f"Rows processed: {result['rows_processed']}")
print(f"\nRevenue by Region:")
for row in result["data"]:
print(f" {row['region']}: ${row['revenue_sum']:,.0f} "
f"(avg ${row['revenue_mean']:,.0f}, {row['revenue_count']} deals)")Verification
Package installs and imports correctly. runtime checks passed.
This package was executed and validated by AgentNode before listing. Install, import, and runtime checks passed.
Last verified 21d ago· Runner v2.0.0
Use this when you need to...
- ›Calculate summary statistics on sales CSV data
- ›Filter and sort customer records by criteria
- ›Merge multiple CSV files on a shared key column
- ›Detect and report missing or duplicate values
- ›Group rows and compute aggregates per category
README
CSV Analyzer Pack
Analyze, filter, and transform CSV data with pandas-powered tools. Group, aggregate, merge, sort, and export — all without writing pandas code yourself.
Quick Start
agentnode install csv-analyzer-pack
from csv_analyzer_pack.tool import run
result = run(
capability="analyze_csv",
params={
"file_path": "/tmp/data.csv",
"operations": [{"type": "describe"}]
}
)
print(result["summary"])
Usage
Summary statistics
result = run(
capability="analyze_csv",
params={
"file_path": "/tmp/sales.csv",
"operations": [{"type": "describe"}]
}
)
for col, stats in result["summary"].items():
print(f"{col}: mean={stats['mean']:.2f}, min={stats['min']}, max={stats['max']}")
Group and aggregate
result = run(
capability="analyze_csv",
params={
"file_path": "/tmp/orders.csv",
"operations": [
{"type": "group_by", "column": "category"},
{"type": "aggregate", "column": "total", "functions": ["sum", "mean"]}
]
}
)
Filter, sort, and export
result = run(
capability="analyze_csv",
params={
"file_path": "/tmp/users.csv",
"operations": [
{"type": "filter", "column": "active", "operator": "==", "value": True},
{"type": "sort", "by": "created_at", "ascending": False},
{"type": "select_columns", "columns": ["name", "email", "plan"]}
],
"output_path": "/tmp/active_users.csv"
}
)
print(f"Exported {result['rows_output']} rows")
API Reference
| Capability | Description |
|---|---|
analyze_csv | Apply operations to CSV data and return results |
Operations: describe, filter, sort, group_by, aggregate, select_columns, merge, deduplicate, fill_missing.
Parameters: file_path (required), operations (required), output_path, encoding.
Returns: data, summary, rows_processed, rows_output, output_path, columns.
Requirements
No environment variables required.
License
MIT
Version History
Capabilities
Permissions
This package declares the following access levels. Review before installing.
agentnode install csv-analyzer-packFiles (3)
License
MITStats
Compatibility
Frameworks
Runtime
pythonPython Version
>=3.10Trust & Security
Publisher
AgentNode
@agentnode