Skip to content

Commit

Permalink
updates to all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
chaz-clark committed Oct 28, 2024
1 parent 020f814 commit d7e070b
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 195 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
with:
python-version: '3.11'
#cache: 'pip'
- run: pip install jupyter numpy pandas scikit-learn lets-plot palmerpenguins plotly.express seaborn altair altair_viewer tabulate nbformat nbclient kaleido
- run: pip install jupyter numpy pandas scikit-learn lets-plot palmerpenguins nbformat nbclient # plotly.express seaborn altair altair_viewer tabulate kaleido
#- run: pip install -r requirements.txt

# Comment out the 2 below section if you are not using R
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@
/Templates/DS350_Template.qmd
*.html
/site_libs
/docs
Binary file added 250_Projects/lahmansbaseballdb.sqlite
Binary file not shown.
28 changes: 2 additions & 26 deletions 250_Projects/project0.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import numpy as np
from lets_plot import *
from palmerpenguins import load_penguins
LetsPlot.setup_html(isolated_frame=True, no_js=True)
LetsPlot.setup_html(isolated_frame=True)
```


Expand All @@ -56,32 +56,8 @@ _A Client has requested this analysis and this is your one shot of what you woul
penguins = load_penguins()
```

__Highlight the Questions and Tasks__

## Question|Task 1

__COPY PASTE QUESTION|TASK 1 FROM THE PROJECT HERE__

_Add details here to answer the question but `NOT` like an assignment Q&A. You need to `write your answers as a consulting solution report`. A Client needs to understand the answer, but also needs to understand the decisions that went into the answer (when applicable)._

_include figures in chunks and discuss your findings in the figure._

- _YOU SHOULD HAVE QUALITY WRITING THAT DESCRIBES YOUR CHARTS AND TABLES._

- _WE HIGHLY RECOMMEND [GRAMMARLY](https://grammarly.com/) TO FIX YOUR SPELLING AND GRAMMAR. WRITING TAKES TIME TO BE CLEAR. SPEND THE TIME TO PRACITCE._

- _YOU SHOULD HAVE QUALITY COMMENTS THAT DESCRIBES YOUR CODES. OFTEN CODEERS WORK IN TEAMS AND YOU NEED TO HAVE QUALTIY COMMENTS FOR YOUR TEAM AND YOURSELF. YOU MAY NEED TO REVISIT CODE YOU WROTE OVER A YEAR AGO, AND IF YOU DONT COMMENT IT NOW YOU WONT REMEMBER WHY YOU DID WHAT YOU DID._

```{python}
#| label: Q1
#| code-summary: Read and format data
# Include and execute your code here
```

## Question|Task 2

__COPY PASTE QUESTION|TASK 2 FROM THE PROJECT HERE__

- _include figures in chunks and discuss your findings in the figure._
Expand Down Expand Up @@ -178,7 +154,7 @@ __COPY PASTE QUESTION|TASK 2 FROM THE PROJECT HERE__
)
```

## Question|Task 3
## Question|Task 2

__COPY PASTE QUESTION|TASK 3 FROM THE PROJECT HERE__

Expand Down
29 changes: 1 addition & 28 deletions 250_Projects/project1.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Paste in a template
29 changes: 1 addition & 28 deletions 250_Projects/project2.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Paste in a template
22 changes: 22 additions & 0 deletions 250_Projects/project3 test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#%%
import pandas as pd
import numpy as np
import sqlite3

# %%
# careful to list your path to the file or save it in the same place as your .qmd or .py file
sqlite_file = 'lahmansbaseballdb.sqlite'
con = sqlite3.connect(sqlite_file)

q = 'SELECT * FROM allstarfull LIMIT 5'
results = pd.read_sql_query(q,con)

results
#%%
q = '''
SELECT *
FROM sqlite_master
WHERE type='table'
'''
table = pd.read_sql_query(q,con)
table.filter(['name'])
29 changes: 1 addition & 28 deletions 250_Projects/project3.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Paste in a template
29 changes: 1 addition & 28 deletions 250_Projects/project4.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Paste in a template
29 changes: 1 addition & 28 deletions 250_Projects/project5.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Paste in a template
29 changes: 1 addition & 28 deletions 250_Projects/project6.qmd
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
---
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

---

### Paste in a template
### Here is a link to my GitHub portfolio: [GitHub Portfolio]('link to portfolio goes here')
50 changes: 50 additions & 0 deletions Templates/ds250_coding_challenge_template.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: "Coding Challenge"
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

---

```{python}
# Read in libraries
import pandas as pd
import numpy as np
from lets_plot import *
```

```{python}
# Read in the names data
url = "https://github.com/byuidatascience/data4names/raw/master/data-raw/names_year/names_year.csv"
names = pd.read_csv(url)
```

## Question #:

### [Replace with the text from question #]

```{python}
# Question # Code
```

When done with a question, render it to a `.html` file and upload it for the question. Either re-downolad this template or file -> save as -> a new file name and then replace the text in the question with the new question text.
Loading

0 comments on commit d7e070b

Please sign in to comment.