mgbam commited on
Commit
58f284c
·
verified ·
1 Parent(s): 139e188

Update tools/plot_generator.py

Browse files
Files changed (1) hide show
  1. tools/plot_generator.py +1 -4
tools/plot_generator.py CHANGED
@@ -1,10 +1,7 @@
1
-
2
  import pandas as pd
3
  import matplotlib.pyplot as plt
4
- from google.adk.tools import Tool
5
 
6
- @Tool(name="plot_sales_tool", description="Plot sales trend over time")
7
- def plot_sales(file_path: str) -> str:
8
  df = pd.read_csv(file_path)
9
  if 'Month' not in df.columns or 'Sales' not in df.columns:
10
  return "Missing 'Month' or 'Sales' columns."
 
 
1
  import pandas as pd
2
  import matplotlib.pyplot as plt
 
3
 
4
+ def plot_sales_tool(file_path: str) -> str:
 
5
  df = pd.read_csv(file_path)
6
  if 'Month' not in df.columns or 'Sales' not in df.columns:
7
  return "Missing 'Month' or 'Sales' columns."