(path: str)
| 43 | |
| 44 | |
| 45 | def load_excel(path: str) -> str: |
| 46 | data = pd.read_excel(path, sheet_name=None, engine="openpyxl") |
| 47 | return json.dumps( |
| 48 | {sheet: df.to_dict(orient="records") for sheet, df in data.items()}, default=str |
| 49 | ) |
| 50 | |
| 51 | |
| 52 | def load_csv(path: str) -> str: |