Duplicated from agents-course/Final_Assignment_Template
9779920 9876236
1
2
3
4
5
6
7
8
9
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}"