Skip to main content

Simplifying good practice in statistical tables.

Project description

Actions build status PyPI release

gptables is an opinionated python package for spreadsheet production. It produces .xlsx files from your pandas dataframes or using reticulate in R. You define the mapping from your data to elements of the table. It does the rest.

gptables uses the official guidance on good practice spreadsheets. It advocates a strong adherence to the guidance by restricting the range of operations possible. The default theme gptheme should accommodate most use cases. However, the Theme object allows development of custom themes, where other formatting is required.

gptables is developed and maintained by the Best Practice and Impact division of the Office for National Statistics, UK.

4 Simple Steps

  1. You map your data to the elements of a GPTable.
  2. You can define the format of each element with a custom Theme, or simply use the default - gptheme.
  3. Optionally design a Cover page to provide information that relates to all of the tables in your Workbook.
  4. You write_workbook to win.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for gptables, version 0.4.0
Filename, size File type Python version Upload date Hashes
Filename, size gptables-0.4.0-py3-none-any.whl (57.7 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size gptables-0.4.0.tar.gz (50.1 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page