{"id":13504976,"url":"https://github.com/posit-dev/great-tables","last_synced_at":"2025-05-13T00:14:13.998Z","repository":{"id":206075016,"uuid":"489481382","full_name":"posit-dev/great-tables","owner":"posit-dev","description":"Make awesome display tables using Python","archived":false,"fork":false,"pushed_at":"2025-05-06T20:23:17.000Z","size":98113,"stargazers_count":2226,"open_issues_count":120,"forks_count":91,"subscribers_count":13,"default_branch":"main","last_synced_at":"2025-05-13T00:14:05.854Z","etag":null,"topics":["easy-to-use","formatting-data","pandas-dataframe","polars-dataframe","python","styling","summary-tables","tables"],"latest_commit_sha":null,"homepage":"https://posit-dev.github.io/great-tables/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/posit-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":"CITATION.cff","codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-05-06T20:11:05.000Z","updated_at":"2025-05-11T03:36:09.000Z","dependencies_parsed_at":"2024-02-19T23:22:44.089Z","dependency_job_id":"942fc0bf-ef81-4b67-8512-3bc64be92ec9","html_url":"https://github.com/posit-dev/great-tables","commit_stats":null,"previous_names":["posit-dev/great_tables"],"tags_count":29,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fgreat-tables","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fgreat-tables/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fgreat-tables/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/posit-dev%2Fgreat-tables/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/posit-dev","download_url":"https://codeload.github.com/posit-dev/great-tables/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253843225,"owners_count":21972874,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["easy-to-use","formatting-data","pandas-dataframe","polars-dataframe","python","styling","summary-tables","tables"],"created_at":"2024-08-01T00:00:55.826Z","updated_at":"2025-05-13T00:14:13.973Z","avatar_url":"https://github.com/posit-dev.png","language":"Python","readme":"\u003cdiv align=\"center\"\u003e\n\n\u003ca href=\"https://posit-dev.github.io/great-tables/\"\u003e\u003cimg src=\"https://posit-dev.github.io/great-tables/assets/GT_logo.svg\" width=\"350px\"/\u003e\u003c/a\u003e\n\n_Absolutely Delightful Table-making in Python_\n\n[![Python Versions](https://img.shields.io/pypi/pyversions/great_tables.svg)](https://pypi.python.org/pypi/great_tables)\n[![PyPI](https://img.shields.io/pypi/v/great_tables)](https://pypi.org/project/great-tables/#history)\n[![PyPI Downloads](https://img.shields.io/pypi/dm/great-tables)](https://pypistats.org/packages/great-tables)\n[![License](https://img.shields.io/github/license/posit-dev/great-tables)](https://img.shields.io/github/license/posit-dev/great-tables)\n\n[![CI Build](https://github.com/posit-dev/great-tables/actions/workflows/ci-tests.yaml/badge.svg)](https://github.com/posit-dev/great-tables/actions/workflows/ci-tests.yaml)\n[![Codecov branch](https://img.shields.io/codecov/c/github/posit-dev/great-tables/main.svg)](https://codecov.io/gh/posit-dev/great-tables)\n[![Repo Status](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)\n[![Documentation](https://img.shields.io/badge/docs-project_website-blue.svg)](https://posit-dev.github.io/great-tables/)\n\n[![Contributors](https://img.shields.io/github/contributors/posit-dev/great-tables)](https://github.com/posit-dev/great-tables/graphs/contributors)\n[![Discord](https://img.shields.io/discord/1086103944280952992?color=%237289da\u0026label=Discord)](https://discord.com/invite/Ux7nrcXHVV)\n[![pyOpenSci Peer-Reviewed](https://pyopensci.org/badges/peer-reviewed.svg)](https://github.com/pyOpenSci/software-review/issues/202)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.14618357.svg)](https://doi.org/10.5281/zenodo.14618357)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.1%20adopted-ff69b4.svg)](https://www.contributor-covenant.org/version/2/1/code_of_conduct.html)\n\n\u003c/div\u003e\n\nWith **Great Tables** anyone can make wonderful-looking tables in Python. The philosophy here is that we can construct a wide variety of useful tables by working with a cohesive set of table components. You can mix and match things like a _header_ and _footer_, attach a _stub_ (which contains row labels), arrange _spanner labels_ over top of the _column labels_, and much more. Not only that, but you can format the cell values in a variety of awesome ways.\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://posit-dev.github.io/great-tables/assets/the_components_of_a_table.svg\" width=\"800px\"\u003e\n\u003c/div\u003e\n\nIt all begins with **table data** in the form of a Pandas or Polars DataFrame. You then decide how to compose your output table with the elements and formatting you need for the task at hand. Finally, the table is rendered to HTML (the default option) or to an image file.\n\nThe **Great Tables** package is designed to be both straightforward yet powerful. The emphasis is on simple methods for the everyday display table needs (but power when you need it). Here is a brief example of how to use **Great Tables** to create a table from the included `sp500` dataset:\n\n```python\nfrom great_tables import GT\nfrom great_tables.data import sp500\n\n# Define the start and end dates for the data range\nstart_date = \"2010-06-07\"\nend_date = \"2010-06-14\"\n\n# Filter sp500 using Pandas to dates between `start_date` and `end_date`\nsp500_mini = sp500[(sp500[\"date\"] \u003e= start_date) \u0026 (sp500[\"date\"] \u003c= end_date)]\n\n# Create a display table based on the `sp500_mini` table data\n(\n    GT(sp500_mini)\n    .tab_header(title=\"S\u0026P 500\", subtitle=f\"{start_date} to {end_date}\")\n    .fmt_currency(columns=[\"open\", \"high\", \"low\", \"close\"])\n    .fmt_date(columns=\"date\", date_style=\"wd_m_day_year\")\n    .fmt_number(columns=\"volume\", compact=True)\n    .cols_hide(columns=\"adj_close\")\n)\n```\n\n\u003cdiv align=\"center\"\u003e\n\u003cimg src=\"https://posit-dev.github.io/great-tables/assets/gt_sp500_table.svg\" width=\"800px\"\u003e\n\u003c/div\u003e\n\nTypically we use Great Tables in an notebook environment or within a [**Quarto**](https://quarto.org) document. Tables won't print to the console, but using the [`show()` method](https://posit-dev.github.io/great-tables/reference/GT.show.html#great_tables.GT.show) on a table object while in the console will open the HTML table in your default browser.\n\nThere are 16 datasets provided by **Great Tables**: `countrypops`, `sza`, `gtcars`, `sp500`, `pizzaplace`, `exibble`, `towny`, `peeps`, `films`, `metro`, `gibraltar`, `constants`, `illness`, `reactions`, `photolysis`, and `nuclides`.\n\n\u003cdiv align=\"center\" style=\"padding-top:20px\"\u003e\n\u003cimg src=\"https://posit-dev.github.io/great-tables/assets/datasets.png\" style=\"width:100%;\"\u003e\n\u003c/div\u003e\n\nAll of this tabular data is great for experimenting with the functionality available inside **Great Tables** and we make extensive use of these datasets in our documentation.\n\nBeyond the methods shown in the simple `sp500`-based example, there are many possible ways to create super-customized tables. Check out the [documentation website](https://posit-dev.github.io/great-tables/) to get started via introductory articles for making **Great Tables**. There's a handy _Reference_ section that has detailed help for every method and function in the package.\n\n[![Documentation Site](https://img.shields.io/badge/Project%20Website-Documentation%20and%20Reference-blue?style=social)](https://posit-dev.github.io/great-tables/)\n\nLet's talk about how to make **Great Tables**! There are a few locations where there is much potential for discussion.\n\nOne such place is in [_GitHub Discussions_](https://github.com/posit-dev/great-tables/discussions). This discussion board is especially great for Q\u0026A, and many people have had their problems solved in there.\n\n[![GitHub Discussions](https://img.shields.io/badge/GitHub%20Discussions-Ask%20about%20anything-blue?style=social\u0026logo=github\u0026logoColor=gray)](https://github.com/posit-dev/great-tables/discussions)\n\nAnother fine venue for discussion is in our [_Discord server_](https://discord.com/invite/Ux7nrcXHVV). This is a good option for asking about the development of **Great Tables**, pitching ideas that may become features, and sharing your table creations!\n\n[![Discord Server](https://img.shields.io/badge/Discord-Chat%20with%20us-blue?style=social\u0026logo=discord\u0026logoColor=purple)](https://discord.com/invite/Ux7nrcXHVV)\n\nFinally, there is the [_X account_](https://twitter.com/gt_package). There you'll find posts about **Great Tables** (including sneak previews about in-development features) and other table-generation packages.\n\n[![X Follow](https://img.shields.io/twitter/follow/gt_package?style=social)](https://twitter.com/gt_package)\n\nThese are all great places to ask questions about how to use the package, discuss some ideas, engage with others, and much more!\n\n## INSTALLATION\n\nThe **Great Tables** package can be installed from **PyPI** with:\n\n```bash\n$ pip install great_tables\n```\n\nYou can also install [Great Tables from Conda-Forge](https://anaconda.org/conda-forge/great_tables) by using:\n\n```bash\nconda install conda-forge::great_tables\n```\n\nIf you encounter a bug, have usage questions, or want to share ideas to make this package better, please feel free to file an [issue](https://github.com/posit-dev/great-tables/issues).\n\n## Code of Conduct\n\nPlease note that the **Great Tables** project is released with a [contributor code of conduct](https://www.contributor-covenant.org/version/2/1/code_of_conduct/).\u003cbr\u003eBy participating in this project you agree to abide by its terms.\n\n## Contributing to **Great Tables**\n\nThere are many ways to contribute to the ongoing development of the **Great Tables** package. Some contributions can be simple (like fixing typos, improving documentation, filing issues for feature requests or problems, etc.) and others might take more time and care (like answering questions and submitting PRs with code changes). Just know that anything you can do to help would be very much appreciated!\n\nPlease read over the [contributing guidelines](https://github.com/posit-dev/great-tables/blob/main/CONTRIBUTING.md) for information on how to get started.\n\n## 📄 License\n\n**Great Tables** is licensed under the MIT license.\n\n© Posit Software, PBC.\n\n## Citation\n\nIf you use **Great Tables** in your research/project/product, we would appreciate a citation to the package. You can cite the package using the following BibTeX entry:\n\n```bibtex\n@software{Iannone_great_tables,\nauthor = {Iannone, Richard and Chow, Michael},\nlicense = {MIT},\ntitle = {{great-tables: Make awesome display tables using Python.}},\nurl = {https://github.com/posit-dev/great-tables},\nversion = {0.14.0}\n}\n```\n\n## 🏛️ Governance\n\nThis project is primarily maintained by [Rich Iannone](https://twitter.com/riannone) and [Michael Chow](https://twitter.com/chowthedog).\nOther authors may occasionally assist with some of these duties.\n","funding_links":[],"categories":["Tables","Python","Projects","🐍 Python","Visualization"],"sub_categories":["Python packages","📋 Others","Useful Python Tools for Data Analysis"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposit-dev%2Fgreat-tables","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fposit-dev%2Fgreat-tables","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fposit-dev%2Fgreat-tables/lists"}