diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 55f882f..78b95a3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,8 @@ jobs: with: # To install LaTeX to build PDF book tinytex: true - + + # Comment out the below section if you are not using python - name: Install Python and Dependencies uses: actions/setup-python@v4 with: @@ -28,6 +29,21 @@ jobs: - run: pip install jupyter numpy pandas scikit-learn plotly.express #- run: pip install -r requirements.txt + # Comment out the 2 below section if you are not using R + - name: Install R + uses: r-lib/actions/setup-r@v2 + with: + r-version: '4.3.2' + use-public-rspm: true + + - name: Install R Dependencies + uses: r-lib/actions/setup-renv@v2 + with: + packages: + any::tidyverse + any::knitr + any::DT + - name: Render and Publish uses: quarto-dev/quarto-actions/publish@v2 with: diff --git a/Projects/project1.qmd b/Projects/project1.qmd index 5efe468..f2154af 100644 --- a/Projects/project1.qmd +++ b/Projects/project1.qmd @@ -25,168 +25,4 @@ execute: --- -```{python} -#| label: libraries -#| include: false -import pandas as pd -import numpy as np -import plotly.express as px -``` - - -## Elevator pitch - -_paste your elevator pitch here_ -_A SHORT (4-5 SENTENCES) PARAGRAPH THAT `DESCRIBES KEY INSIGHTS` TAKEN FROM METRICS IN THE PROJECT RESULTS THINK TOP OR MOST IMPORTANT RESULTS._ - -```{python} -#| label: project data -#| code-summary: Read and format project data -# Include and execute your code here -df = pd.read_csv("https://github.com/byuidatascience/data4names/raw/master/data-raw/names_year/names_year.csv") -``` - -__Highlight the Questions and Tasks__ - -## QUESTION|TASK 1 - -__COPY PASTE QUESTION|TASK 1 FROM THE PROJECT HERE__ - -_type your results and analysis here_ - -```{python} -#| label: Q1 -#| code-summary: Read and format data -# Include and execute your code here - - -``` - -_include figures in chunks and discuss your findings in the figure._ - -```{python} -#| label: Q1 chart -#| code-summary: plot example -#| fig-cap: "My useless chart" -#| fig-align: center -# Include and execute your code here -chart = px.bar(df.head(200), - x="name", - y="AK" -) -chart.show() -``` - - -```{python} -#| label: Q1 table -#| code-summary: table example -#| tbl-cap: "Not much of a table" -#| tbl-cap-location: top -# Include and execute your code here -mydat = df.head(1000)\ - .groupby('year')\ - .sum()\ - .reset_index()\ - .tail(10)\ - .filter(["year", "AK","AR"]) - -display(mydat) - -``` - - -## QUESTION|TASK 2 - -__COPY PASTE QUESTION|TASK 2 FROM THE PROJECT HERE__ - -_type your results and analysis here_ - -```{python} -#| label: Q2 -#| code-summary: Read and format data -# Include and execute your code here - - -``` - -_include figures in chunks and discuss your findings in the figure._ - -```{python} -#| label: Q2 chart -#| code-summary: plot example -#| fig-cap: "My useless chart" -#| fig-align: center -# Include and execute your code here -chart = px.bar(df.head(200), - x="name", - y="AK" -) -chart.show() -``` - - -```{python} -#| label: Q2 table -#| code-summary: table example -#| tbl-cap: "Not much of a table" -#| tbl-cap-location: top -# Include and execute your code here -mydat = df.head(1000)\ - .groupby('year')\ - .sum()\ - .reset_index()\ - .tail(10)\ - .filter(["year", "AK","AR"]) - -display(mydat) - -``` - - -## QUESTION|TASK 3 - -__COPY PASTE QUESTION|TASK 3 FROM THE PROJECT HERE__ - -_type your results and analysis here_ - -```{python} -#| label: Q3 -#| code-summary: Read and format data -# Include and execute your code here - - -``` - -_include figures in chunks and discuss your findings in the figure._ - -```{python} -#| label: Q3 chart -#| code-summary: plot example -#| fig-cap: "My useless chart" -#| fig-align: center -# Include and execute your code here -chart = px.bar(df.head(200), - x="name", - y="AK" -) -chart.show() -``` - - -```{python} -#| label: Q3 table -#| code-summary: table example -#| tbl-cap: "Not much of a table" -#| tbl-cap-location: top -# Include and execute your code here -mydat = df.head(1000)\ - .groupby('year')\ - .sum()\ - .reset_index()\ - .tail(10)\ - .filter(["year", "AK","AR"]) - -display(mydat) - -``` +### Paste in a template diff --git a/Projects/project2.qmd b/Projects/project2.qmd index 2d4622a..f2154af 100644 --- a/Projects/project2.qmd +++ b/Projects/project2.qmd @@ -25,171 +25,4 @@ execute: --- -### Uncomment the entire section to use this template - - +### Paste in a template diff --git a/Projects/project3.qmd b/Projects/project3.qmd index 2d4622a..f2154af 100644 --- a/Projects/project3.qmd +++ b/Projects/project3.qmd @@ -25,171 +25,4 @@ execute: --- -### Uncomment the entire section to use this template - - +### Paste in a template diff --git a/Projects/project4.qmd b/Projects/project4.qmd index 94db098..f2154af 100644 --- a/Projects/project4.qmd +++ b/Projects/project4.qmd @@ -25,172 +25,4 @@ execute: --- - -### Uncomment the entire section to use this template - - +### Paste in a template diff --git a/Projects/project5.qmd b/Projects/project5.qmd index 2d4622a..f2154af 100644 --- a/Projects/project5.qmd +++ b/Projects/project5.qmd @@ -25,171 +25,4 @@ execute: --- -### Uncomment the entire section to use this template - - +### Paste in a template diff --git a/Templates/DS250_Template.qmd b/Templates/DS250_Template.qmd new file mode 100644 index 0000000..2d4622a --- /dev/null +++ b/Templates/DS250_Template.qmd @@ -0,0 +1,195 @@ +--- +title: "Client Report - [Insert Project Title]" +subtitle: "Course DS 250" +author: "[STUDENT NAME]" +format: + html: + self-contained: true + page-layout: full + title-block-banner: true + toc: true + toc-depth: 3 + toc-location: body + number-sections: false + html-math-method: katex + code-fold: true + code-summary: "Show the code" + code-overflow: wrap + code-copy: hover + code-tools: + source: false + toggle: true + caption: See code +execute: + warning: false + +--- + +### Uncomment the entire section to use this template + + diff --git a/Templates/DS350_Template.qmd b/Templates/DS350_Template.qmd new file mode 100644 index 0000000..cf3b03c --- /dev/null +++ b/Templates/DS350_Template.qmd @@ -0,0 +1,28 @@ +--- +title: "Client Report - [Insert Project Title]" +subtitle: "Course DS 250" +author: "[STUDENT NAME]" +format: + html: + self-contained: true + page-layout: full + title-block-banner: true + toc: true + toc-depth: 3 + toc-location: body + number-sections: false + html-math-method: katex + code-fold: true + code-summary: "Show the code" + code-overflow: wrap + code-copy: hover + code-tools: + source: false + toggle: true + caption: See code +execute: + warning: false + +--- + +### TODO: Update with template from Paul diff --git a/_site/cleansing.html b/_site/cleansing.html index f4658e1..83f85a1 100644 --- a/_site/cleansing.html +++ b/_site/cleansing.html @@ -2,7 +2,7 @@
- + @@ -48,7 +48,13 @@ "collapse-after": 3, "panel-placement": "end", "type": "overlay", - "limit": 20, + "limit": 50, + "keyboard-shortcut": [ + "f", + "/", + "s" + ], + "show-item-context": false, "language": { "search-no-results-text": "No results", "search-matching-documents-text": "matching documents", @@ -57,6 +63,7 @@ "search-more-match-text": "more match in this document", "search-more-matches-text": "more matches in this document", "search-clear-button-title": "Clear", + "search-text-placeholder": "", "search-detached-cancel-button-title": "Cancel", "search-submit-button-title": "Submit", "search-label": "Search" @@ -67,13 +74,13 @@ - +