Spaces:
Running
Running
Update tools/plot_generator.py
Browse files- 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 |
-
|
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."
|