{"id":2798,"library":"tabledata","title":"tabledata","description":"tabledata is a Python library designed to represent tabular data programmatically. It serves as a foundational component for other libraries by the same author, such as pytablewriter, pytablereader, and SimpleSQLite. The library is actively maintained, with its current version being 1.3.4, and receives regular updates.","status":"active","version":"1.3.4","language":"en","source_language":"en","source_url":"https://github.com/thombashi/tabledata","tags":["data-structure","tabular-data","data-representation","python-library"],"install":[{"cmd":"pip install tabledata","lang":"bash","label":"Install with pip"}],"dependencies":[{"reason":"Core dependency for property extraction and data handling within tabular data structures.","package":"DataProperty","optional":false},{"reason":"Required to convert table data into a pandas DataFrame object.","package":"pandas","optional":true},{"reason":"Used for logging purposes if installed.","package":"loguru","optional":true}],"imports":[{"symbol":"TableData","correct":"from tabledata import TableData"},{"symbol":"ColumnData","correct":"from tabledata import ColumnData"},{"symbol":"DataRow","correct":"from tabledata import DataRow"}],"quickstart":{"code":"from tabledata import TableData\n\ntable_name = \"users\"\nheaders = [\"ID\", \"Name\", \"Email\"]\nrows = [\n    [1, \"Alice\", \"alice@example.com\"],\n    [2, \"Bob\", \"bob@example.com\"],\n    [3, \"Charlie\", \"charlie@example.com\"]\n]\n\ntable = TableData(table_name, headers, rows)\n\nprint(f\"Table Name: {table.table_name}\")\nprint(f\"Headers: {table.headers}\")\nfor row in table.rows:\n    print(f\"Row: {row.data}\")\n\n# Accessing data (example)\nprint(f\"First user's name: {table.rows[0].get_value_by_name('Name')}\")","lang":"python","description":"Creates a TableData object to represent tabular data with a name, headers, and rows, then demonstrates basic access to its components."},"warnings":[{"fix":"Upgrade Python environment to 3.9 or higher. For Ubuntu, consider `sudo add-apt-repository ppa:thombashi/ppa && sudo apt update && sudo apt install python3-tabledata` or standard Python upgrade methods.","message":"Support for Python 3.7 and 3.8 was dropped in version 1.3.4. Users on these Python versions must upgrade to Python 3.9+ to use the latest `tabledata` versions.","severity":"breaking","affected_versions":">=1.3.4"},{"fix":"Ensure `DataProperty` is updated to version 1.0.1 or newer. `pip install --upgrade DataProperty` or reinstalling `tabledata` should resolve this.","message":"The minimum required version of the `DataProperty` library was bumped to 1.0.1 in `tabledata` v1.3.2. Older `DataProperty` versions may lead to incompatibility issues.","severity":"breaking","affected_versions":">=1.3.2"},{"fix":"Upgrade Python environment to 3.9 or higher.","message":"Support for Python 3.6 was dropped in version 1.3.2.","severity":"breaking","affected_versions":">=1.3.2"},{"fix":"Migrate codebase to Python 3.","message":"Python 2 support was entirely dropped in version 1.0.0. All versions from 1.0.0 onwards are Python 3 only.","severity":"breaking","affected_versions":">=1.0.0"}],"env_vars":null,"last_verified":"2026-04-10T00:00:00.000Z","next_check":"2026-07-09T00:00:00.000Z"}