MCPcopy Create free account
hub / github.com/ScaleML/AgentSPEX / load_excel

Function load_excel

src/harness/utils/file_parsers.py:45–49  ·  view source on GitHub ↗
(path: str)

Source from the content-addressed store, hash-verified

43
44
45def 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
52def load_csv(path: str) -> str:

Callers

nothing calls this directly

Calls 1

to_dictMethod · 0.45

Tested by

no test coverage detected