# ValueError：时间数据 '2024-13-45' 与格式 '%Y-%m-%d' 不匹配

- **ID:** `python/pandas-parse-dates-error`
- **领域:** python
- **类别:** data_error
- **验证级别:** ai_generated
- **修复率:** 80%

## 根因

日期字符串无效（月/日超出范围）或格式字符串不正确。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| 3.x | active | — | — |

## 解决方案

1. **** (95% 成功率)
   ```
   pd.to_datetime(s, errors='coerce') then inspect s.isna()
   ```
2. **** (85% 成功率)
   ```
   pd.to_datetime(s, format='mixed', dayfirst=False)
   ```

## 无效尝试

- **** — Silently drops data; root data quality issue persists (75% 失败率)
- **** — Produces wrong dates for valid rows (85% 失败率)
