Source: factory.core/ObjDocumentSpreadsheet.py
| Method | Signature | Description |
|---|---|---|
| load_data | load_data(file_path: str, max_rows: int = 10, max_cols: int = 8) -> pd.DataFrame |
Read CSV or XLSX and return a truncated DataFrame. |
| generate_preview | generate_preview(df: pd.DataFrame, output_path: str, figure_size: int = 8) -> bool |
Render a DataFrame as a table image using matplotlib. |