Skip to content

Commit

Permalink
Fix documentation errors (#54)
Browse files Browse the repository at this point in the history
* Documentation is broken
Fixes #53

* Also update ages while here
  • Loading branch information
nikhilwoodruff authored Dec 10, 2024
1 parent a91d3b0 commit 7c782c4
Show file tree
Hide file tree
Showing 9 changed files with 111 additions and 101 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.11.1] - 2024-12-10 10:46:07

### Fixed

- Documentation errors.

## [1.11.0] - 2024-12-09 11:51:05

### Added
Expand Down Expand Up @@ -121,6 +127,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0



[1.11.1]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.11.0...1.11.1
[1.11.0]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.10.1...1.11.0
[1.10.1]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.10.0...1.10.1
[1.10.0]: https://github.com/PolicyEngine/policyengine-us-data/compare/1.9.2...1.10.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ docker:

documentation:
jb clean docs && jb build docs
python docs/add_plotly_to_book.py docs/book
python docs/add_plotly_to_book.py docs

data:
python policyengine_uk_data/datasets/frs/dwp_frs.py
Expand Down
5 changes: 5 additions & 0 deletions changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@
added:
- Local authority weights.
date: 2024-12-09 11:51:05
- bump: patch
changes:
fixed:
- Documentation errors.
date: 2024-12-10 10:46:07
2 changes: 2 additions & 0 deletions docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ logo: logo.png

execute:
execute_notebooks: force
allow_errors: false
timeout: 600

repository:
url: https://github.com/policyengine/policyengine-uk-data
Expand Down
7 changes: 2 additions & 5 deletions docs/methodology.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1794,7 +1794,7 @@
},
{
"cell_type": "code",
"execution_count": 20,
"execution_count": null,
"metadata": {},
"outputs": [
{
Expand Down Expand Up @@ -3018,9 +3018,6 @@
"incomes[\"band\"] = incomes.name.apply(\n",
" lambda x: \"_\".join(x.split(\"band_\")[1].split(\"_\")[1:])\n",
")\n",
"incomes[\"band_str\"] = incomes.band.apply(\n",
" lambda x: x.split(\".\")[0]\n",
")\n",
"incomes[\"count\"] = incomes.name.apply(lambda x: \"count\" in x)\n",
"incomes[\"variable\"] = incomes.name.apply(\n",
" lambda x: x.split(\"_income_band\")[0].split(\"_count\")[0].split(\"hmrc/\")[-1]\n",
Expand Down Expand Up @@ -5080,7 +5077,7 @@
"\n",
"fig = px.bar(\n",
" variable_df,\n",
" x=\"band_str\",\n",
" x=\"band\",\n",
" y=[\n",
" \"target\",\n",
" \"estimate\",\n",
Expand Down
5 changes: 2 additions & 3 deletions docs/validation/national.ipynb

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "policyengine_uk_data"
version = "1.11.0"
version = "1.11.1"
description = "A package to create representative microdata for the UK."
readme = "README.md"
authors = [
Expand Down

0 comments on commit 7c782c4

Please sign in to comment.