Skip to content

Commit

Permalink
Update equity_priority_communities_build.ipynb
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuacroff committed Dec 13, 2023
1 parent 8fe3351 commit 9ca0099
Showing 1 changed file with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@
"source": [
"cols = {\n",
" \"fipco\": \"county_fip\",\n",
" \"B03002_001E\": \"tot_pop_mi\",\n",
" \"B03002_001E\": \"tot_pop_poc\",\n",
" \"B01001_001E\": \"tot_pop_se\",\n",
" \"C17002_001E\": \"tot_pop_po\",\n",
" \"C18108_001E\": \"tot_pop_ci\",\n",
Expand All @@ -520,7 +520,7 @@
"outputs": [],
"source": [
"# calculate pocty population\n",
"acs_df[\"pop_poc\"] = acs_df[\"tot_pop_mi\"] - acs_df[\"B03002_003E\"]\n",
"acs_df[\"pop_poc\"] = acs_df[\"tot_pop_poc\"] - acs_df[\"B03002_003E\"]\n",
"\n",
"# calculate senior population\n",
"acs_df[\"pop_over75\"] = (\n",
Expand Down Expand Up @@ -578,7 +578,7 @@
"outputs": [],
"source": [
"acs_df[\"pct_poc\"] = np.where(\n",
" acs_df[\"tot_pop_mi\"] == 0, 0, (acs_df[\"pop_poc\"] / acs_df[\"tot_pop_mi\"])\n",
" acs_df[\"tot_pop_poc\"] == 0, 0, (acs_df[\"pop_poc\"] / acs_df[\"tot_pop_poc\"])\n",
")\n",
"acs_df[\"pct_over75\"] = np.where(\n",
" acs_df[\"tot_pop_se\"] == 0, 0, (acs_df[\"pop_over75\"] / acs_df[\"tot_pop_se\"])\n",
Expand Down Expand Up @@ -845,7 +845,7 @@
"name": "stderr",
"output_type": "stream",
"text": [
"/var/folders/9q/xt2lctm54xq6fd45m1lmgp4m0000gp/T/ipykernel_80927/4199737063.py:1: FutureWarning: The provided callable <built-in function sum> is currently using SeriesGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string \"sum\" instead.\n",
"/var/folders/9q/xt2lctm54xq6fd45m1lmgp4m0000gp/T/ipykernel_82004/4199737063.py:1: FutureWarning: The provided callable <built-in function sum> is currently using SeriesGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string \"sum\" instead.\n",
" acs_df.groupby(\"epc_class\")[\"epc_2050p\"].agg(sum)\n"
]
},
Expand Down Expand Up @@ -1148,7 +1148,7 @@
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>Minorities</td>\n",
" <td>People of Color</td>\n",
" <td>0.61</td>\n",
" <td>0.23</td>\n",
" <td>0.72</td>\n",
Expand Down Expand Up @@ -1216,7 +1216,7 @@
"text/plain": [
" factors mean std plus_half_sd \\\n",
"0 Seniors 75 Years and Over 0.07 0.06 0.10 \n",
"1 Minorities 0.61 0.23 0.72 \n",
"1 People of Color 0.61 0.23 0.72 \n",
"2 Limited English Proficiency 0.07 0.08 0.11 \n",
"3 Single Parent Families 0.12 0.09 0.16 \n",
"4 Low-Income (<200% Federal Poverty Level-FPL) 0.18 0.13 0.24 \n",
Expand Down Expand Up @@ -1287,7 +1287,7 @@
"final_cols = [\n",
" \"tract_geoid\",\n",
" \"county_fip\",\n",
" \"tot_pop_mi\",\n",
" \"tot_pop_poc\",\n",
" \"tot_pop_se\",\n",
" \"tot_pop_po\",\n",
" \"tot_pop_ci\",\n",
Expand Down Expand Up @@ -1339,7 +1339,15 @@
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Published DRAFT Equity Priority Communities - Plan Bay Area 2050 Plus (ACS 2022) to ArcGIS Online as 7a02c40be2864d52bcb19b32979e1eb0\n"
]
}
],
"source": [
"publish_geojson_to_agol(\n",
" geojson_path=epc_path,\n",
Expand All @@ -1363,7 +1371,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 53,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -1372,7 +1380,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 54,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -1381,7 +1389,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 55,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 9ca0099

Please sign in to comment.