Spaces:
Sleeping
Sleeping
File size: 288 Bytes
010071f |
1 2 3 4 5 6 7 8 9 |
import pandas as pd
from google.adk.tools import Tool
@Tool(name="parse_csv_tool", description="Parse and summarize business CSV data")
def parse_csv(file_path: str) -> str:
df = pd.read_csv(file_path)
return f"Schema: {list(df.columns)}\n\nStats:\n{df.describe().to_string()}"
|