T09 · Insecure Skill Coding Practices
- Location
scripts/analyze.py:306- Finding
Fabricated Financial Data Can Be Used to Generate Investment Recommendations
- Content
View full analysis
0 else None # 解析營收同比 (簡體中文) revenue_growth = None for col in df.columns: if '营业总收入' in col and '同比' in col and latest is not None: val = latest.get(col) if val and val != 'False': try: revenue_growth = float(str(val).replace('%', '')) except: pass break # 解析淨利潤同比 (簡體中文) profit_growth = None for col in df.columns: if '净利润' in col and '同比' in col and '扣非' not in col and latest is not None: val = latest.get(col) if val and val != 'False': try: profit_growth = float(str(val).replace('%', '')) except: pass break # 解析ROE (簡體中文) roe = None for col in df.columns: if '净资产收益率' in col and latest is not None: val = latest.get(col) if val and val != 'False': try: roe = float(str(val).replace('%', '')) except: pass break # 三年CAGR - 估算 profit_3y_ ...[truncated 4725 chars]- Remediation
View remediation
