Skip to content

Commit 48909df

Browse files
authored
Merge pull request #78 from gperdrizet/dev
Cleanup
2 parents 58e9867 + 56f2c58 commit 48909df

File tree

11 files changed

+1488
-32
lines changed

11 files changed

+1488
-32
lines changed

.github/workflows/jekyll-gh-pages.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ jobs:
3838
run: cp -r ./notebooks/* ./docs/assets/notebooks/
3939
- name: Move notebook config file into build directory
4040
run: cp -r ./notebooks/notebooks.yml ./docs/_data/
41+
- name: Move resources page into build directory
42+
run: cp ./resources.md ./docs/
4143
- name: Build with Jekyll
4244
uses: actions/jekyll-build-pages@v1
4345
with:

data/unit2/housing_data.csv

Lines changed: 1461 additions & 0 deletions
Large diffs are not rendered by default.

docs/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ _site
44
.jekyll-metadata
55
Gemfile.lock
66
vendor
7-
notebooks
7+
notebooks
8+
resources.md
-877 KB
Binary file not shown.

notebooks/unit2/lesson_10/Lesson_10_activity_solution.ipynb

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55
"id": "764436ef",
66
"metadata": {},
77
"source": [
8-
"# Lesson 10 Activity Solution: Working with Pandas"
8+
"# Lesson 10 activity solution: working with Pandas"
99
]
1010
},
1111
{
1212
"cell_type": "markdown",
1313
"id": "61077fda",
1414
"metadata": {},
1515
"source": [
16-
"## Learning Objectives\n",
16+
"## Learning objectives\n",
1717
"\n",
1818
"By the end of this activity, you will be able to:\n",
1919
"- Create Pandas Series and DataFrames\n",
@@ -57,7 +57,7 @@
5757
"metadata": {},
5858
"source": [
5959
"---\n",
60-
"## Problem 1: Creating Your First DataFrame\n",
60+
"## Problem 1: creating your first DataFrame\n",
6161
"\n",
6262
"**Scenario:** You're working at a bookstore and need to create a simple inventory system.\n",
6363
"\n",
@@ -244,7 +244,7 @@
244244
"metadata": {},
245245
"source": [
246246
"---\n",
247-
"## Problem 2: Loading and Exploring Student Data\n",
247+
"## Problem 2: loading and exploring data\n",
248248
"\n",
249249
"**Scenario:** You're a teacher analyzing student performance data.\n",
250250
"\n",
@@ -255,12 +255,12 @@
255255
"4. Show descriptive statistics for numerical columns using `.describe()`\n",
256256
"5. Find the average grade of all students\n",
257257
"\n",
258-
"Students data file avalible for download here: [students.csv](https://gperdrizet.github.io/FSA_devops/assets/notebooks/unit2/students.csv)"
258+
"Students data file avalible for download here: [students.csv](https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/students.csv)"
259259
]
260260
},
261261
{
262262
"cell_type": "code",
263-
"execution_count": 6,
263+
"execution_count": null,
264264
"id": "5c564957",
265265
"metadata": {},
266266
"outputs": [
@@ -274,7 +274,8 @@
274274
],
275275
"source": [
276276
"# Step 1: Load the CSV file\n",
277-
"students_df = pd.read_csv('students.csv')\n",
277+
"url = 'https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/students.csv'\n",
278+
"students_df = pd.read_csv(url)\n",
278279
"print('Students data loaded successfully!')"
279280
]
280281
},
@@ -584,7 +585,7 @@
584585
"metadata": {},
585586
"source": [
586587
"---\n",
587-
"## Problem 3: Data Filtering and Selection\n",
588+
"## Problem 3: data filtering and selection\n",
588589
"\n",
589590
"**Scenario:** Continue working with the student data to find specific information.\n",
590591
"\n",
@@ -971,7 +972,7 @@
971972
"metadata": {},
972973
"source": [
973974
"---\n",
974-
"## Problem 4: Sales Data Analysis\n",
975+
"## Problem 4: sales data analysis\n",
975976
"\n",
976977
"**Scenario:** You're analyzing sales data for an electronics store.\n",
977978
"\n",
@@ -982,12 +983,12 @@
982983
"4. Find the product with the highest total value\n",
983984
"5. Calculate the grand total of all sales\n",
984985
"\n",
985-
"Sales data file avalible for download here: [sales.csv](https://gperdrizet.github.io/FSA_devops/assets/notebooks/unit2/sales.csv)"
986+
"Sales data file avalible for download here: [sales.csv](https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/sales.csv)"
986987
]
987988
},
988989
{
989990
"cell_type": "code",
990-
"execution_count": 16,
991+
"execution_count": null,
991992
"id": "9d90ac54",
992993
"metadata": {},
993994
"outputs": [
@@ -1081,7 +1082,8 @@
10811082
],
10821083
"source": [
10831084
"# Step 1: Load the sales data\n",
1084-
"sales_df = pd.read_csv('sales.csv')\n",
1085+
"url = 'https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/sales.csv'\n",
1086+
"sales_df = pd.read_csv(url)\n",
10851087
"print('Sales data loaded:')\n",
10861088
"sales_df"
10871089
]
@@ -1321,7 +1323,7 @@
13211323
"metadata": {},
13221324
"source": [
13231325
"---\n",
1324-
"## Problem 5: Series Creation and Manipulation\n",
1326+
"## Problem 5: series creation and manipulation\n",
13251327
"\n",
13261328
"**Scenario:** Create and work with Pandas Series for daily temperature data.\n",
13271329
"\n",
@@ -1484,7 +1486,7 @@
14841486
"metadata": {},
14851487
"source": [
14861488
"---\n",
1487-
"## Reflection Questions\n",
1489+
"## Reflection questions\n",
14881490
"\n",
14891491
"**1. What is the difference between a Pandas Series and a DataFrame?**\n",
14901492
"\n",
@@ -1517,7 +1519,7 @@
15171519
],
15181520
"metadata": {
15191521
"kernelspec": {
1520-
"display_name": ".venv",
1522+
"display_name": "Python 3",
15211523
"language": "python",
15221524
"name": "python3"
15231525
},
@@ -1531,7 +1533,7 @@
15311533
"name": "python",
15321534
"nbconvert_exporter": "python",
15331535
"pygments_lexer": "ipython3",
1534-
"version": "3.12.3"
1536+
"version": "3.12.12"
15351537
}
15361538
},
15371539
"nbformat": 4,

notebooks/unit2/lesson_11/Lesson_11_activity_solution.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
},
4343
{
4444
"cell_type": "code",
45-
"execution_count": 2,
45+
"execution_count": null,
4646
"id": "3d78949f",
4747
"metadata": {},
4848
"outputs": [
@@ -247,7 +247,8 @@
247247
}
248248
],
249249
"source": [
250-
"df = pd.read_csv('housing_data.csv')\n",
250+
"url = 'https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/housing_data.csv'\n",
251+
"df = pd.read_csv(url)\n",
251252
"df.head()"
252253
]
253254
},

notebooks/unit2/lesson_INC1/INC1_example.ipynb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@
368368
],
369369
"source": [
370370
"# Load the CSV file into a DataFrame\n",
371-
"df = pd.read_csv('NSMES1988-NSMES1988.csv')\n",
371+
"url = 'https://raw.githubusercontent.com/gperdrizet/FSA_devops/refs/heads/main/data/unit2/NSMES1988-NSMES1988.csv'\n",
372+
"df = pd.read_csv(url)\n",
372373
"# Display the DataFrame\n",
373374
"df"
374375
]

0 commit comments

Comments
 (0)