What problem does it solve?
It eliminates inconsistent or incomplete lottery datasets by automating incremental updates, normalizing issue formats, and transforming raw API responses into standardized, analysis-ready features.
Core Features & Use Cases
- Incremental + coverage synchronization: Retrieves the most recent records (e.g., last 100), re-captures issues using >= logic, and deduplicates by issue to preserve the latest winnerDetails.
- Cross-candy issue normalization: Normalizes varying issue formats before comparing local_latest to remote data to prevent missed updates.
- Standardized preprocessing & feature engineering: Maps award tiers per lottery type, cleans columns via allowlists, and computes core statistics such as sum, span, odd/even, big/small, 连号/跳号, AC value, heavy/repeat counts, and interval-region distributions.
Quick Start
Run python request_data_update.py to sync the latest lottery data and ensure winnerDetails integrity.