{
  "id": "python/pandas-attribute-error-append",
  "signature": "AttributeError: 'DataFrame' object has no attribute 'append'",
  "signature_zh": "AttributeError：'DataFrame' 对象没有 'append' 属性",
  "regex": "AttributeError:\\ 'DataFrame'\\ object\\ has\\ no\\ attribute\\ 'append'",
  "domain": "python",
  "category": "module_error",
  "subcategory": null,
  "root_cause": "DataFrame.append was removed in pandas 2.0.",
  "root_cause_type": "generic",
  "root_cause_zh": "DataFrame.append 在 pandas 2.0 中已被移除。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Breaks other dependencies; no long-term fix",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Method truly removed",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "pd.concat([df1, df2], ignore_index=True)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Collect rows in a list and build once: pd.DataFrame(rows)",
      "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.9,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-26",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}