{"id":20864714,"url":"https://github.com/the-strategy-unit/data_science","last_synced_at":"2025-08-03T08:05:31.437Z","repository":{"id":77581340,"uuid":"602023400","full_name":"The-Strategy-Unit/data_science","owner":"The-Strategy-Unit","description":"Data Science @ The Strategy Unit","archived":false,"fork":false,"pushed_at":"2025-07-28T12:00:48.000Z","size":91054,"stargazers_count":9,"open_issues_count":53,"forks_count":1,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-28T12:07:14.631Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://the-strategy-unit.github.io/data_science/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/The-Strategy-Unit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-02-15T10:37:05.000Z","updated_at":"2025-07-28T12:00:51.000Z","dependencies_parsed_at":"2023-03-12T01:07:57.216Z","dependency_job_id":"590a162d-77c1-43fe-a08d-48a36f804a9c","html_url":"https://github.com/The-Strategy-Unit/data_science","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/The-Strategy-Unit/data_science","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-Strategy-Unit%2Fdata_science","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-Strategy-Unit%2Fdata_science/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-Strategy-Unit%2Fdata_science/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-Strategy-Unit%2Fdata_science/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/The-Strategy-Unit","download_url":"https://codeload.github.com/The-Strategy-Unit/data_science/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/The-Strategy-Unit%2Fdata_science/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268512159,"owners_count":24261887,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-18T05:43:58.650Z","updated_at":"2025-08-03T08:05:31.426Z","avatar_url":"https://github.com/The-Strategy-Unit.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section --\u003e\n[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors-)\n\u003c!-- ALL-CONTRIBUTORS-BADGE:END --\u003e\n\n\n# Data science team repo\n\nIf you have any questions or need help, please contact anyone from [the Data Science team](https://the-strategy-unit.github.io/data_science/about.html).\n\nThis repo features:\n\n* Presentations the team have delivered\n* A website/ blog that the data science team can use to blog and compile other forms of resources\n* Guidance on good coding practices, also known as a \"style guide\"\n\n## Contributing to this repo\n\nAll members of the Strategy Unit organisation on Github should be able to contribute to this repository.\n\n1. Create an issue for the thing you want to add on GitHub\n2. Clone the repository (in RStudio, File \u003e New Project \u003e Checkout a project from a version controlled repository). Paste in the URL of this repository.\n3. Check out the main branch and check it's up to date in the RStudio Terminal  (type `git checkout main \u0026\u0026 git pull` in terminal)\n4. Check out a new branch  (`git checkout -b issue-number` in terminal)\n5. Follow instructions in the {renv} section.\n\n### {renv}\n\nPlease note this project uses {renv}. This is a way of managing the different packages \nthat are required for each blogpost and presentation.\n\n1. Install the R toolchain [RTools](https://cran.r-project.org/bin/windows/Rtools/) to compile some of the packages. \n2. Install {renv} (`install.packages(\"renv\")` in console)\n3. Run `renv::restore()` in Console to install all the required packages, and ensure that you are on the version of R detailed in the `renv.lock` file in the parent directory.\n\nThere is a separate renv lockfile for each blogpost/presentation so it will be difficult to render the whole website at once.\n\nTo work on an already published blogpost/presentation:\n\n1. Run `renv::use(lockfile=\"/path/to/page/renv.lock\")` in Console\n2. Edit the .qmd file that you are working on. To preview your changes, run `quarto preview path/to/page.qmd` in terminal.\n\n### How to create a new presentation\n\n1. Make the presentation with quarto, and put it in `presentations/` in a `YYYY-MM-DD_Talk-title` folder. Your presentation should conform to the SU branding. It should have the filename `index.qmd`\n2. If your presentation requires any specific packages, capture them with `renv::snapshot(\"PATH_TO_THE_FOLDER\")` and ensure that you include in the top of your .qmd file (after the yaml) the following code chunk, without the hashes (#)\n\n```\n#```\n{r lockfile}\n#| include: FALSE\nrenv::use(lockfile = \"renv.lock\")\n#```\n```\n\n### How to create a new blogpost \n\n1. Navigate to the `blogs/posts` folder\n2. Create a folder for your blogpost, following the naming convention `YYYY-MM-DD_title-of-post`\n3. Copy a previous blogpost index.qmd file into your folder and use that as your template\n4. Write your blogpost. To preview changes, run `quarto preview path/to/index.qmd` in terminal.\n5. If your blogpost requires any specific packages, capture them with `renv::snapshot(\"PATH_TO_THE_FOLDER\")` and ensure that you include in the top of your .qmd file (after the yaml) the following code chunk, without the hashes (#)\n\n```\n#```\n{r lockfile}\n#| include: FALSE\nrenv::use(lockfile = \"renv.lock\")\n#```\n```\n\n\n### How to create/edit pages on the website\n\n1. Find the `.qmd` file that you wish to edit. For example, if you want to add to the Style Guide page, edit the `style/style_guide.qmd` file.\n2. If creating a new page, copy an existing `.qmd` file and use that as a template.\n3. If you want to see how it looks before pushing to GitHub, click Render in RStudio. The HTML version of your new post should open in your browser.\n\n\n### Pushing your blog post/presentation/page to GitHub\n\n1. Save your file, then add and commit it (`git add file.qmd` and `git commit -m \"Add blog post/presentation about x\"`)\n2. Push your content to your branch in GitHub (`git push origin branchname`). \n3. Then, on GitHub, make a pull request to main. Put any member of the Data Science team down as a reviewer. Link your pull request with your issue by typing `Closes #issuenumber` in the comment field of your pull request.\n4. When approved and merged to main, the Quarto page will automatically be rendered thanks to the GitHub action that has been set up.\n\n# Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore-start --\u003e\n\u003c!-- markdownlint-disable --\u003e\n\u003ctable\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://chrisbeeley.net\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/1259867?v=4?s=100\" width=\"100px;\" alt=\"Chris Beeley\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eChris Beeley\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#talk-ChrisBeeley\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"https://github.com/The-Strategy-Unit/data_science/commits?author=ChrisBeeley\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.strategyunitwm.nhs.uk/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/105867449?v=4?s=100\" width=\"100px;\" alt=\"Craig Parylo\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eCraig Parylo\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-craig-parylo\" title=\"Blogposts\"\u003e📝\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/DCEW\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/112561799?v=4?s=100\" width=\"100px;\" alt=\"Dr Claire Welsh\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eDr Claire Welsh\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#talk-DCEW\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"#blog-DCEW\" title=\"Blogposts\"\u003e📝\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/jacgrout\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/103451105?v=4?s=100\" width=\"100px;\" alt=\"Jacqueline Grout\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eJacqueline Grout\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#talk-jacgrout\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"#blog-jacgrout\" title=\"Blogposts\"\u003e📝\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://matt-dray.com\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/18232097?v=4?s=100\" width=\"100px;\" alt=\"Matt Dray\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eMatt Dray\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-matt-dray\" title=\"Blogposts\"\u003e📝\u003c/a\u003e \u003ca href=\"#talk-matt-dray\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"https://github.com/The-Strategy-Unit/data_science/commits?author=matt-dray\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"http://rhian.rbind.io\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/7017740?v=4?s=100\" width=\"100px;\" alt=\"Rhian Davies\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eRhian Davies\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-StatsRhian\" title=\"Blogposts\"\u003e📝\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://tjmt.uk/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/12023696?v=4?s=100\" width=\"100px;\" alt=\"Tom Jemmett\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTom Jemmett\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-tomjemmett\" title=\"Blogposts\"\u003e📝\u003c/a\u003e \u003ca href=\"#talk-tomjemmett\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"https://github.com/The-Strategy-Unit/data_science/commits?author=tomjemmett\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://www.linkedin.com/in/yiwen-h/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/60136255?v=4?s=100\" width=\"100px;\" alt=\"YiWen Hon\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eYiWen Hon\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-yiwen-h\" title=\"Blogposts\"\u003e📝\u003c/a\u003e \u003ca href=\"#talk-yiwen-h\" title=\"Talks\"\u003e📢\u003c/a\u003e \u003ca href=\"https://github.com/The-Strategy-Unit/data_science/commits?author=yiwen-h\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://philosopher-analyst.netlify.app/\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/39963221?v=4?s=100\" width=\"100px;\" alt=\"Zoë Turner\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eZoë Turner\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/The-Strategy-Unit/data_science/commits?author=Lextuga007\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/sallyt-nhs\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/105062662?v=4?s=100\" width=\"100px;\" alt=\"sallyt-nhs\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003esallyt-nhs\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#talk-sallyt-nhs\" title=\"Talks\"\u003e📢\u003c/a\u003e\u003c/td\u003e\n      \u003ctd align=\"center\" valign=\"top\" width=\"14.28%\"\u003e\u003ca href=\"https://github.com/sheilamomo\"\u003e\u003cimg src=\"https://avatars.githubusercontent.com/u/152722438?v=4?s=100\" width=\"100px;\" alt=\"sheilamomo\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003esheilamomo\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"#blog-sheilamomo\" title=\"Blogposts\"\u003e📝\u003c/a\u003e\u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\u003c!-- markdownlint-restore --\u003e\n\u003c!-- prettier-ignore-end --\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-strategy-unit%2Fdata_science","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-strategy-unit%2Fdata_science","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-strategy-unit%2Fdata_science/lists"}