removed comments from block 3

This commit is contained in:
2026-03-29 18:33:17 -04:00
parent 38643ab161
commit 45dfe67f4e

View File

@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"execution_count": 2,
"metadata": {
"id": "Q6ifg03dKPR4"
},
@@ -19,7 +19,7 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 3,
"metadata": {
"id": "0ghtg7ecRQ50"
},
@@ -40,7 +40,7 @@
},
{
"cell_type": "code",
"execution_count": 3,
"execution_count": 4,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/",
@@ -177,7 +177,7 @@
"[150 rows x 4 columns]"
]
},
"execution_count": 3,
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
@@ -192,11 +192,111 @@
},
{
"cell_type": "code",
"execution_count": 4,
"execution_count": 5,
"metadata": {
"id": "ANJhDRNPKPR5"
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"iris.csv: file read into a pandas DataFrame.\n"
]
},
{
"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>sepallen</th>\n",
" <th>sepalwid</th>\n",
" <th>petallen</th>\n",
" <th>petalwid</th>\n",
" <th>irisname</th>\n",
" <th>junk</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>NaN</td>\n",
" <td>3.5</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>setosa</td>\n",
" <td>remove_me</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>4.9</td>\n",
" <td>3.0</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>setosa</td>\n",
" <td>remove_me</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>4.7</td>\n",
" <td>3.2</td>\n",
" <td>1.3</td>\n",
" <td>0.2</td>\n",
" <td>setosa</td>\n",
" <td>remove_me</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>4.6</td>\n",
" <td>3.1</td>\n",
" <td>1.5</td>\n",
" <td>0.2</td>\n",
" <td>setosa</td>\n",
" <td>remove_me</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>5.0</td>\n",
" <td>3.6</td>\n",
" <td>1.4</td>\n",
" <td>0.2</td>\n",
" <td>setosa</td>\n",
" <td>remove_me</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" sepallen sepalwid petallen petalwid irisname junk\n",
"0 NaN 3.5 1.4 0.2 setosa remove_me\n",
"1 4.9 3.0 1.4 0.2 setosa remove_me\n",
"2 4.7 3.2 1.3 0.2 setosa remove_me\n",
"3 4.6 3.1 1.5 0.2 setosa remove_me\n",
"4 5.0 3.6 1.4 0.2 setosa remove_me"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"#############################\n",
"# BLOCK 3: READING DATA\n",
@@ -204,10 +304,10 @@
"\n",
"# let's read in our flower data...\n",
"#\n",
"#filename = 'iris.csv'\n",
"#df = pd.read_csv(filename, header=0) # encoding=\"latin1\" et al.\n",
"#print(f\"{filename}: file read into a pandas DataFrame.\")\n",
"#df.head()"
"filename = 'iris.csv'\n",
"df = pd.read_csv(filename, header=0) # encoding=\"latin1\" et al.\n",
"print(f\"{filename}: file read into a pandas DataFrame.\")\n",
"df.head()"
]
},
{