{"record":{"id":"e33caaba125f5694","repo":"run-llama/llama_index","slug":"you-must-install-the-pandas-package-to-use-this","errorCode":null,"errorMessage":"You must install the `pandas` package to use this node parser.","messagePattern":"You must install the `pandas` package to use this node parser\\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"llama-index-core/llama_index/core/node_parser/relational/utils.py","lineNumber":11,"sourceCode":"from typing import Any\n\nfrom io import StringIO\n\n\ndef md_to_df(md_str: str) -> Any:\n    \"\"\"Convert Markdown to dataframe.\"\"\"\n    try:\n        import pandas as pd\n    except ImportError:\n        raise ImportError(\n            \"You must install the `pandas` package to use this node parser.\"\n        )\n\n    # Replace \" by \"\" in md_str\n    md_str = md_str.replace('\"', '\"\"')\n\n    # Replace markdown pipe tables with commas\n    md_str = md_str.replace(\"|\", '\",\"')\n\n    # Remove the second line (table header separator)\n    lines = md_str.split(\"\\n\")\n    md_str = \"\\n\".join(lines[:1] + lines[2:])\n\n    # Remove the first and last second char of the line (the pipes, transformed to \",\")\n    lines = md_str.split(\"\\n\")\n    md_str = \"\\n\".join([line[2:-2] for line in lines])\n\n    # Check if the table is empty","sourceCodeStart":1,"sourceCodeEnd":29,"githubUrl":"https://github.com/run-llama/llama_index/blob/afd0fef371831f9bda13e5af7167cf4e981278ab/llama-index-core/llama_index/core/node_parser/relational/utils.py#L1-L29","documentation":"Error \"You must install the `pandas` package to use this node parser.\" thrown in run-llama/llama_index.","triggerScenarios":"Thrown at llama-index-core/llama_index/core/node_parser/relational/utils.py:11 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Install pandas: `pip install pandas`."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"afd0fef371831f9bda13e5af7167cf4e981278ab","analyzedAt":"2026-08-15T05:42:58.429Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}