Skip to content

Commit

Permalink
Auto-commit: Mon Sep 16 12:59:03 CDT 2024
Browse files Browse the repository at this point in the history
  • Loading branch information
jnaiman committed Sep 16, 2024
1 parent da0d403 commit 37bd5ed
Show file tree
Hide file tree
Showing 2 changed files with 402 additions and 2 deletions.
202 changes: 201 additions & 1 deletion week04/.ipynb_checkpoints/inClass_week04-checkpoint.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,209 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "278ef836-3463-4881-986e-5b7cbc529c87",
"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>Agency Name</th>\n",
" <th>Location Name</th>\n",
" <th>Address</th>\n",
" <th>City</th>\n",
" <th>Zip code</th>\n",
" <th>County</th>\n",
" <th>Congress Dist</th>\n",
" <th>Congressional Full Name</th>\n",
" <th>Rep Dist</th>\n",
" <th>Rep Full Name</th>\n",
" <th>...</th>\n",
" <th>Bldg Status</th>\n",
" <th>Year Acquired</th>\n",
" <th>Year Constructed</th>\n",
" <th>Square Footage</th>\n",
" <th>Total Floors</th>\n",
" <th>Floors Above Grade</th>\n",
" <th>Floors Below Grade</th>\n",
" <th>Usage Description</th>\n",
" <th>Usage Description 2</th>\n",
" <th>Usage Description 3</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>Department of Natural Resources</td>\n",
" <td>Anderson Lake Conservation Area - Fulton County</td>\n",
" <td>Anderson Lake C.a.</td>\n",
" <td>Astoria</td>\n",
" <td>61501</td>\n",
" <td>Fulton</td>\n",
" <td>17</td>\n",
" <td>Cheri Bustos</td>\n",
" <td>93</td>\n",
" <td>Hammond Norine K.</td>\n",
" <td>...</td>\n",
" <td>In Use</td>\n",
" <td>2004</td>\n",
" <td>2004</td>\n",
" <td>144</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>Unusual</td>\n",
" <td>Unusual</td>\n",
" <td>Not provided</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>Department of Natural Resources</td>\n",
" <td>Dixon Springs State Park - Pope County</td>\n",
" <td>Rr #2</td>\n",
" <td>Golconda</td>\n",
" <td>62938</td>\n",
" <td>Pope</td>\n",
" <td>15</td>\n",
" <td>John Shimkus</td>\n",
" <td>118</td>\n",
" <td>Phelps Brandon W.</td>\n",
" <td>...</td>\n",
" <td>In Use</td>\n",
" <td>2000</td>\n",
" <td>2000</td>\n",
" <td>120</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>Unusual</td>\n",
" <td>Unusual</td>\n",
" <td>Not provided</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>Department of Natural Resources</td>\n",
" <td>Dixon Springs State Park - Pope County</td>\n",
" <td>Rr #2</td>\n",
" <td>Golconda</td>\n",
" <td>62938</td>\n",
" <td>Pope</td>\n",
" <td>15</td>\n",
" <td>John Shimkus</td>\n",
" <td>118</td>\n",
" <td>Phelps Brandon W.</td>\n",
" <td>...</td>\n",
" <td>In Use</td>\n",
" <td>2000</td>\n",
" <td>2000</td>\n",
" <td>120</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" <td>Unusual</td>\n",
" <td>Unusual</td>\n",
" <td>Not provided</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>3 rows × 22 columns</p>\n",
"</div>"
],
"text/plain": [
" Agency Name \\\n",
"5 Department of Natural Resources \n",
"6 Department of Natural Resources \n",
"7 Department of Natural Resources \n",
"\n",
" Location Name Address \\\n",
"5 Anderson Lake Conservation Area - Fulton County Anderson Lake C.a. \n",
"6 Dixon Springs State Park - Pope County Rr #2 \n",
"7 Dixon Springs State Park - Pope County Rr #2 \n",
"\n",
" City Zip code County Congress Dist Congressional Full Name \\\n",
"5 Astoria 61501 Fulton 17 Cheri Bustos \n",
"6 Golconda 62938 Pope 15 John Shimkus \n",
"7 Golconda 62938 Pope 15 John Shimkus \n",
"\n",
" Rep Dist Rep Full Name ... Bldg Status Year Acquired \\\n",
"5 93 Hammond Norine K. ... In Use 2004 \n",
"6 118 Phelps Brandon W. ... In Use 2000 \n",
"7 118 Phelps Brandon W. ... In Use 2000 \n",
"\n",
" Year Constructed Square Footage Total Floors Floors Above Grade \\\n",
"5 2004 144 1 1 \n",
"6 2000 120 1 1 \n",
"7 2000 120 1 1 \n",
"\n",
" Floors Below Grade Usage Description Usage Description 2 \\\n",
"5 0 Unusual Unusual \n",
"6 0 Unusual Unusual \n",
"7 0 Unusual Unusual \n",
"\n",
" Usage Description 3 \n",
"5 Not provided \n",
"6 Not provided \n",
"7 Not provided \n",
"\n",
"[3 rows x 22 columns]"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"buildings.iloc[5:8] # like grabbing a subset of a list"
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "b3b34314-e51f-436e-8d2a-4f1df5d9b0a6",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"5 Department of Natural Resources\n",
"6 Department of Natural Resources\n",
"7 Department of Natural Resources\n",
"Name: Agency Name, dtype: object"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"buildings.iloc[5:8][\"Agency Name\"]"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "3b9b82fe-ff2b-4910-975e-47cd4da7f163",
"metadata": {},
"outputs": [],
"source": []
}
Expand Down
Loading

0 comments on commit 37bd5ed

Please sign in to comment.