You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Added
read_excel_safe(): read one Excel worksheet, normalize every cell to text, apply the same contract-driven guards as read_csv_safe(), and return the typed frame with an IngestionReport.
Worksheet selection with sheet_name, accepting a name or a non-negative zero-based index. The resolved sheet is recorded on IngestionReport.sheet.
CleanerReport.from_excel(): attach Excel ingestion findings to the same profile, contract, validation, and decision report as CSV input.
data-cleaner audit now detects .xlsx, .xlsm, .xls, .xlsb, and .ods input and accepts --sheet NAME or --sheet-index N.
numeric_identifier warning when a contract ID column is stored as numbers in the spreadsheet and has already lost its leading zeros.
Optional excel extra (openpyxl>=3.1) for .xlsx and .xlsm workbooks. read_csv_safe() remains dependency-free.
Per-cell date guards so one datetime column can mix real dates, compact YYYYMMDD values, and Excel serials.
Duplicate column headers after string conversion are rejected with a clear error.
URL source labels are stored without credentials or query strings.
Documentation
Excel sections across the ingestion, reporting, quickstart, production, and API guides.
README install extra and feature list, CHANGELOG, ROADMAP Tier 7, and Upcoming.
Notes
IngestionReport gains sheet (default None) and location; both to_markdown() and warning/error messages name the resolved sheet.
IngestionReport.raise_if_failed() defaults to the format-neutral message "Ingestion failed"; read_csv_safe() and read_excel_safe() still name their format.
Real Excel date cells are parsed directly. Numbers in a datetime column are treated as Excel serial dates and flagged with excel_serial_date.
Excel cannot preserve leading zeros in a cell stored as a number. The reader warns with numeric_identifier, but store identifiers as text to avoid the loss.
.xls, .xlsb, and .ods files need the matching pandas engine (xlrd, pyxlsb, or odfpy); the excel extra covers .xlsx and .xlsm.
Artifact format remains 2; this release is additive.