Timestamp Validation¶
The timestamp health checker detects common timestamp issues in time series data.
Basic Usage¶
Detected Issues¶
| Issue Type | Severity | Description |
|---|---|---|
gap | error/warning | Time difference exceeds 2x the expected frequency |
duplicate | error | Multiple rows with the same timestamp |
non_monotonic | error | Timestamps out of order |
freq_drift | warning | Median interval deviates from expected frequency |
dst_ambiguous | warning | Timestamp was ambiguous during DST localization |
Customizing Frequency¶
By default, the expected frequency is auto-inferred per tag using the mode of timestamp diffs.
Frequency Drift Tolerance¶
The freq_tolerance parameter controls how much deviation is allowed before flagging drift (default: 0.1 = 10%).
Return Value¶
Returns a DataFrame with columns:
| Column | Description |
|---|---|
tag_name | Affected tag |
issue_type | Type of timestamp anomaly |
timestamp | The problematic timestamp |
description | Human-readable explanation |
severity | "error" or "warning" |
Returns an empty DataFrame (not None) when no issues are found.
Next Steps¶
- Report Generation — including timestamp health in reports
- API Reference —
QCResult.check_timestamps()documentation - User Guide — walkthrough with examples