auto-sync: 2026-04-10 15:05:02
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
运行A股基础信息数据质量验证
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from data_quality_manager import AStockDataQualityManager
|
||||
|
||||
print("="*70)
|
||||
print("🔍 赵云开始A股基础信息数据质量验证")
|
||||
print("="*70)
|
||||
|
||||
# 创建质量管理器
|
||||
manager = AStockDataQualityManager()
|
||||
|
||||
# 执行基础信息质量验证
|
||||
result = manager.check_data_completeness(data_type="info")
|
||||
|
||||
# 生成报告
|
||||
report_file = "/Users/chufeng/.openclaw/sanguo_projects/sanguo_quant_live/zhaoyun-data/data/processed/quality_reports/basic_info_quality_report.json"
|
||||
|
||||
import json
|
||||
with open(report_file, 'w', encoding='utf-8') as f:
|
||||
json.dump(result, f, ensure_ascii=False, indent=2)
|
||||
|
||||
print("\n" + "="*70)
|
||||
print("📊 基础信息数据质量验证完成")
|
||||
if 'metrics' in result:
|
||||
print(f" 总股票数: {result['metrics'].get('total_files', 0)}")
|
||||
print(f" 完整性分数: {result['metrics'].get('completeness_score', 0):.2f}")
|
||||
print(f" 状态: {result.get('status', 'unknown')}")
|
||||
print("="*70)
|
||||
|
||||
print("\n✅ 赵云完成基础信息数据质量验证!")
|
||||
Reference in New Issue
Block a user