mgbam commited on
Commit
414568a
·
verified ·
1 Parent(s): afda7e7

Update tools/csv_parser.py

Browse files
Files changed (1) hide show
  1. tools/csv_parser.py +2 -5
tools/csv_parser.py CHANGED
@@ -1,8 +1,5 @@
1
-
2
  import pandas as pd
3
- from google.adk.tools import Tool
4
 
5
- @Tool(name="parse_csv_tool", description="Parse and summarize business CSV data")
6
- def parse_csv(file_path: str) -> str:
7
  df = pd.read_csv(file_path)
8
- return f"Schema: {list(df.columns)}\n\nStats:\n{df.describe().to_string()}"
 
 
1
  import pandas as pd
 
2
 
3
+ def parse_csv_tool(file_path: str) -> str:
 
4
  df = pd.read_csv(file_path)
5
+ return f"Schema: {list(df.columns)}\\n\\nStats:\\n{df.describe().to_string()}"