{
  "id": "python/pandas-csv-parser-error",
  "signature": "pandas.errors.ParserError: Error tokenizing data. C error: Expected 5 fields in line 12, saw 7",
  "signature_zh": "pandas.errors.ParserError：数据分词错误。C 错误：第 12 行预期 5 个字段，实际 7 个",
  "regex": "pandas\\.errors\\.ParserError:\\ Error\\ tokenizing\\ data\\.\\ C\\ error:\\ Expected\\ 5\\ fields\\ in\\ line\\ 12,\\ saw\\ 7",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "CSV rows have inconsistent field counts, often from unquoted commas or embedded newlines.",
  "root_cause_type": "generic",
  "root_cause_zh": "CSV 各行字段数不一致，常因未转义的逗号或内嵌换行。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Silently drops data; root issue persists",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Already comma; delimiter not the issue",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.85,
      "how": "pd.read_csv(path, engine='python', on_bad_lines='warn')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "pd.read_csv(path, quoting=csv.QUOTE_MINIMAL, escapechar='\\\\')",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-07-09",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}