This commit is contained in:
Saran Ahluwalia 2021-12-29 08:00:10 -05:00
parent 8c532b4548
commit 9bcce0a982
14 changed files with 42953 additions and 698 deletions

View file

@ -643,7 +643,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
@ -657,7 +657,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.6.2"
}
},
"nbformat": 4,

File diff suppressed because one or more lines are too long

View file

@ -1527,7 +1527,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
@ -1541,7 +1541,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
"version": "3.6.2"
}
},
"nbformat": 4,

View file

@ -737,7 +737,7 @@
],
"source": [
"plt.figure(figsize=(12, 8))\n",
"plt.title('Relative Housing Burden for Low-Income Hosuing Only')\n",
"plt.title('Relative Housing Burden for Low-Income Housing Only')\n",
"# Set x-axis label\n",
"plt.xlabel('Ratio')\n",
"# Set y-axis label\n",
@ -785,147 +785,6 @@
"sns.histplot(housing_df[\"ratio_pre\"])"
]
},
{
"cell_type": "code",
"execution_count": 14,
"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>FIPS_tract_id</th>\n",
" <th>name</th>\n",
" <th>state</th>\n",
" <th>cnty</th>\n",
" <th>tract</th>\n",
" <th>numerator_pre</th>\n",
" <th>denominator_pre</th>\n",
" <th>denominator_post</th>\n",
" <th>ratio_pre</th>\n",
" <th>ratio_post</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>29008</th>\n",
" <td>14000US22071004402</td>\n",
" <td>Census Tract 44.02, Orleans Parish, Louisiana</td>\n",
" <td>22</td>\n",
" <td>71</td>\n",
" <td>4402</td>\n",
" <td>75</td>\n",
" <td>75</td>\n",
" <td>165</td>\n",
" <td>1.00</td>\n",
" <td>0.45</td>\n",
" </tr>\n",
" <tr>\n",
" <th>37514</th>\n",
" <td>14000US29001951000</td>\n",
" <td>Census Tract 9510, Adair County, Missouri</td>\n",
" <td>29</td>\n",
" <td>1</td>\n",
" <td>951000</td>\n",
" <td>55</td>\n",
" <td>55</td>\n",
" <td>75</td>\n",
" <td>1.00</td>\n",
" <td>0.73</td>\n",
" </tr>\n",
" <tr>\n",
" <th>43932</th>\n",
" <td>14000US36027640002</td>\n",
" <td>Census Tract 6400.02, Dutchess County, New York</td>\n",
" <td>36</td>\n",
" <td>27</td>\n",
" <td>640002</td>\n",
" <td>48</td>\n",
" <td>50</td>\n",
" <td>50</td>\n",
" <td>0.96</td>\n",
" <td>0.96</td>\n",
" </tr>\n",
" <tr>\n",
" <th>71681</th>\n",
" <td>14000US55025001102</td>\n",
" <td>Census Tract 11.02, Dane County, Wisconsin</td>\n",
" <td>55</td>\n",
" <td>25</td>\n",
" <td>1102</td>\n",
" <td>60</td>\n",
" <td>60</td>\n",
" <td>89</td>\n",
" <td>1.00</td>\n",
" <td>0.67</td>\n",
" </tr>\n",
" <tr>\n",
" <th>71689</th>\n",
" <td>14000US55025001603</td>\n",
" <td>Census Tract 16.03, Dane County, Wisconsin</td>\n",
" <td>55</td>\n",
" <td>25</td>\n",
" <td>1603</td>\n",
" <td>1460</td>\n",
" <td>1599</td>\n",
" <td>1934</td>\n",
" <td>0.91</td>\n",
" <td>0.75</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" FIPS_tract_id name \\\n",
"29008 14000US22071004402 Census Tract 44.02, Orleans Parish, Louisiana \n",
"37514 14000US29001951000 Census Tract 9510, Adair County, Missouri \n",
"43932 14000US36027640002 Census Tract 6400.02, Dutchess County, New York \n",
"71681 14000US55025001102 Census Tract 11.02, Dane County, Wisconsin \n",
"71689 14000US55025001603 Census Tract 16.03, Dane County, Wisconsin \n",
"\n",
" state cnty tract numerator_pre denominator_pre denominator_post \\\n",
"29008 22 71 4402 75 75 165 \n",
"37514 29 1 951000 55 55 75 \n",
"43932 36 27 640002 48 50 50 \n",
"71681 55 25 1102 60 60 89 \n",
"71689 55 25 1603 1460 1599 1934 \n",
"\n",
" ratio_pre ratio_post \n",
"29008 1.00 0.45 \n",
"37514 1.00 0.73 \n",
"43932 0.96 0.96 \n",
"71681 1.00 0.67 \n",
"71689 0.91 0.75 "
]
},
"execution_count": 14,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# So only 4 that are > 90%\n",
"housing_df[housing_df[\"ratio_pre\"] > 0.90]"
]
},
{
"cell_type": "code",
"execution_count": 15,
@ -2617,18 +2476,11 @@
"source": [
"seg_austin_2013.statistic"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
@ -2642,7 +2494,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.4"
"version": "3.6.2"
}
},
"nbformat": 4,

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1273,7 +1273,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
@ -1287,7 +1287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.6"
"version": "3.6.2"
}
},
"nbformat": 4,