Skip to content

Commit

Permalink
Add code to example usage section of readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldavies99 committed Jun 28, 2024
1 parent b1285d9 commit cb2d675
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,13 @@ examples_ directory of the package.
:lines: 16-


.. automodule:: gptables.examples.survey_data

.. literalinclude:: ../../gptables/examples/survey_data.py
:language: python
:lines: 8-


R Usage
-------

Expand Down
8 changes: 8 additions & 0 deletions gptables/examples/survey_data.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
"""
Labour market overview, UK: December 2020 - Real Survey Data Example
--------------------------------------------------------------------
This example demonstrates how to replicate the Labour Market overview accessible
example found at https://analysisfunction.civilservice.gov.uk/policy-store/further-resources-for-releasing-statistics-in-spreadsheets/
"""

import gptables as gpt
import pandas as pd
import numpy as np
Expand Down

0 comments on commit cb2d675

Please sign in to comment.