Freddolin's picture
Update tools/excel_tool.py
9876236 verified
raw
history blame
226 Bytes
import pandas as pd
def analyze_excel(file_path: str) -> str:
try:
df = pd.read_excel(file_path)
return df.to_string(index=False)
except Exception as e:
return f"Error reading Excel file: {e}"