MCPcopy Create free account
hub / github.com/OpenBMB/ChatDev / _read_excel

Function _read_excel

server/services/batch_parser.py:56–60  ·  view source on GitHub ↗
(content: bytes)

Source from the content-addressed store, hash-verified

54
55
56def _read_excel(content: bytes) -> pd.DataFrame:
57 try:
58 return pd.read_excel(BytesIO(content))
59 except Exception as exc:
60 raise ValidationError(f"Failed to read Excel file: {exc}", field="file")
61
62
63def _parse_dataframe(df: pd.DataFrame) -> List[BatchTask]:

Callers 1

parse_batch_fileFunction · 0.85

Calls 1

ValidationErrorClass · 0.90

Tested by

no test coverage detected