{"library":"pandas-read-xml","title":"pandas-read-xml (Legacy)","description":"This library, `pandas-read-xml`, provides functionality to read XML files directly into pandas DataFrames. It aims to simplify the process of converting hierarchical XML data into a tabular format, offering options for path specification and automatic flattening. It is important to note that `pandas.read_xml` was introduced into the core pandas library in version 1.3.0, largely superseding the need for this standalone package for newer pandas installations. The latest version of this standalone library is 0.3.1.","language":"python","status":"maintenance","last_verified":"Sat May 16","install":{"commands":["pip install pandas-read-xml"],"cli":null},"imports":["import pandas_read_xml as pdx\ndf = pdx.read_xml(...)"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import pandas_read_xml as pdx\nimport io\n\nxml_data = \"\"\"<?xml version='1.0' encoding='utf-8'?>\n<root>\n    <item id=\"1\">\n        <name>Apple</name>\n        <price>1.00</price>\n    </item>\n    <item id=\"2\">\n        <name>Banana</name>\n        <price>0.50</price>\n    </item>\n</root>\"\"\"\n\n# To read from a file, replace io.StringIO(xml_data) with 'path/to/your/file.xml'\ndf = pdx.read_xml(io.StringIO(xml_data), ['root', 'item'])\nprint(df)","lang":"python","description":"Reads a simple XML string or file path into a pandas DataFrame. The second argument specifies the 'root key list' to navigate to the desired data elements.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":{"tag":null,"tag_description":null,"last_tested":"2026-05-16","installed_version":"0.3.1","pypi_latest":"0.3.1","is_stale":false,"summary":{"python_range":"3.10–3.9","success_rate":100,"avg_install_s":10.2,"avg_import_s":1.62,"wheel_type":"wheel"},"results":[{"runtime":"python:3.10-alpine","python_version":"3.10","os_libc":"alpine (musl)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.49,"mem_mb":38.4,"disk_size":"344.6M"},{"runtime":"python:3.10-slim","python_version":"3.10","os_libc":"slim (glibc)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":10.5,"import_time_s":1.13,"mem_mb":38.4,"disk_size":"313M"},{"runtime":"python:3.11-alpine","python_version":"3.11","os_libc":"alpine (musl)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.97,"mem_mb":43.7,"disk_size":"360.0M"},{"runtime":"python:3.11-slim","python_version":"3.11","os_libc":"slim (glibc)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":9.5,"import_time_s":1.75,"mem_mb":43.7,"disk_size":"328M"},{"runtime":"python:3.12-alpine","python_version":"3.12","os_libc":"alpine (musl)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.73,"mem_mb":42.7,"disk_size":"344.8M"},{"runtime":"python:3.12-slim","python_version":"3.12","os_libc":"slim (glibc)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":9.5,"import_time_s":1.9,"mem_mb":42.7,"disk_size":"312M"},{"runtime":"python:3.13-alpine","python_version":"3.13","os_libc":"alpine (musl)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.72,"mem_mb":43.7,"disk_size":"343.8M"},{"runtime":"python:3.13-slim","python_version":"3.13","os_libc":"slim (glibc)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":10,"import_time_s":1.7,"mem_mb":43.7,"disk_size":"311M"},{"runtime":"python:3.9-alpine","python_version":"3.9","os_libc":"alpine (musl)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":null,"import_time_s":1.49,"mem_mb":38.5,"disk_size":"333.4M"},{"runtime":"python:3.9-slim","python_version":"3.9","os_libc":"slim (glibc)","variant":"pandas-read-xml","exit_code":0,"wheel_type":"wheel","failure_reason":null,"import_side_effects":"clean","install_time_s":11.4,"import_time_s":1.31,"mem_mb":38.5,"disk_size":"311M"}]}}