{"library":"types-tabulate","code":"from tabulate import tabulate\n\ndata = [\n    [\"Name\", \"Age\", \"City\"],\n    [\"Alice\", 30, \"New York\"],\n    [\"Bob\", 24, \"Los Angeles\"],\n    [\"Charlie\", 35, \"Chicago\"]\n]\n\n# Print with headers from the first row\nprint(tabulate(data, headers=\"firstrow\", tablefmt=\"grid\"))\n\nprint(\"\\n---\\n\")\n\n# Or from a list of dictionaries\ndata_dicts = [\n    {\"Item\": \"Pizza\", \"Price\": 850},\n    {\"Item\": \"Burger\", \"Price\": 500},\n    {\"Item\": \"Salad\", \"Price\": 475}\n]\nprint(tabulate(data_dicts, headers=\"keys\", tablefmt=\"fancy_grid\"))","lang":"python","description":"This quickstart demonstrates basic usage of the `tabulate` library for which `types-tabulate` provides typing information. It shows how to create a formatted table from a list of lists and a list of dictionaries, using different table formats like 'grid' and 'fancy_grid'.","tag":null,"tag_description":null,"last_tested":"2026-04-24","results":[{"runtime":"python:3.10-alpine","exit_code":1},{"runtime":"python:3.10-slim","exit_code":1},{"runtime":"python:3.11-alpine","exit_code":1},{"runtime":"python:3.11-slim","exit_code":1},{"runtime":"python:3.12-alpine","exit_code":1},{"runtime":"python:3.12-slim","exit_code":1},{"runtime":"python:3.13-alpine","exit_code":1},{"runtime":"python:3.13-slim","exit_code":1},{"runtime":"python:3.9-alpine","exit_code":1},{"runtime":"python:3.9-slim","exit_code":1}]}