Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 129 additions & 4 deletions notebooks/unit2/lesson_12/Lesson_12_activity.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,124 @@
},
{
"cell_type": "code",
"execution_count": null,
"id": "9eb120c9",
"execution_count": 1,
"id": "8de14613",
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd"
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "9eb120c9",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>weather_condition</th>\n",
" <th>wind_strength</th>\n",
" <th>temperature_c</th>\n",
" <th>rainfall_inches</th>\n",
" <th>humidity_percent</th>\n",
" <th>pressure_hpa</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>Sunny</td>\n",
" <td>Light Breeze</td>\n",
" <td>8.2</td>\n",
" <td>0.13</td>\n",
" <td>48.8</td>\n",
" <td>1016.5</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Snowy</td>\n",
" <td>Gale</td>\n",
" <td>1.6</td>\n",
" <td>0.29</td>\n",
" <td>89.6</td>\n",
" <td>1009.4</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>Rainy</td>\n",
" <td>Strong Wind</td>\n",
" <td>7.3</td>\n",
" <td>0.01</td>\n",
" <td>100.0</td>\n",
" <td>1003.3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>Cloudy</td>\n",
" <td>Light Breeze</td>\n",
" <td>21.6</td>\n",
" <td>0.62</td>\n",
" <td>49.3</td>\n",
" <td>1006.9</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>Sunny</td>\n",
" <td>Calm</td>\n",
" <td>12.0</td>\n",
" <td>1.09</td>\n",
" <td>38.6</td>\n",
" <td>1016.0</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" weather_condition wind_strength temperature_c rainfall_inches \\\n",
"0 Sunny Light Breeze 8.2 0.13 \n",
"1 Snowy Gale 1.6 0.29 \n",
"2 Rainy Strong Wind 7.3 0.01 \n",
"3 Cloudy Light Breeze 21.6 0.62 \n",
"4 Sunny Calm 12.0 1.09 \n",
"\n",
" humidity_percent pressure_hpa \n",
"0 48.8 1016.5 \n",
"1 89.6 1009.4 \n",
"2 100.0 1003.3 \n",
"3 49.3 1006.9 \n",
"4 38.6 1016.0 "
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Load the weather dataset\n",
"df = pd.read_csv('weather.csv')\n",
"url = 'https://gperdrizet.github.io/FSA_devops/assets/data/unit2/weather.csv'\n",
"df = pd.read_csv(url)\n",
"df.head()"
]
},
Expand Down Expand Up @@ -224,8 +335,22 @@
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python"
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.12"
}
},
"nbformat": 4,
Expand Down
14 changes: 3 additions & 11 deletions notebooks/unit2/lesson_12/Lesson_12_linear_algebra_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,10 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "4b544dfa",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Dataset shape: (500, 6)\n",
"\n",
"First few rows:\n"
]
},
{
"data": {
"text/html": [
Expand Down Expand Up @@ -125,7 +116,8 @@
"import pandas as pd\n",
"\n",
"# Display dataset info\n",
"df = pd.read_csv('fitness.csv')\n",
"url = 'https://gperdrizet.github.io/FSA_devops/assets/data/unit2/fitness.csv'\n",
"df = pd.read_csv(url)\n",
"df.head()"
]
},
Expand Down
3 changes: 2 additions & 1 deletion notebooks/unit2/lesson_12/Lesson_12_statistics_demo.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@
}
],
"source": [
"df = pd.read_csv('weather.csv')\n",
"url = 'https://gperdrizet.github.io/FSA_devops/assets/data/unit2/weather.csv'\n",
"df = pd.read_csv(url)\n",
"df.head()"
]
},
Expand Down