thought it did more

This commit is contained in:
2024-12-19 20:04:07 -08:00
parent eb29986f6b
commit 75e8f7b20f

View File

@@ -1171,26 +1171,6 @@
"ax.axis('off')\n",
"plt.show()\n"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
"import pandas as pd\n",
"import geopandas as gpd\n",
"\n",
"# Assume you have county-level aggregated data `county_data` with:\n",
"# County, Avg_Collaboration_Intensity, Total Program GGRFFunding, ghg_efficiency, DAC_benefit_rate, CIscore, etc.\n",
"\n",
"# Load your county shapefile or GeoDataFrame (already loaded as `gdf`)\n",
"# gdf should have a 'County' column to merge on\n",
"spatial_analysis = gdf.merge(county_data, on='County', how='left')\n",
"\n",
"# Drop rows with missing geometry or needed variables\n",
"spatial_analysis = spatial_analysis.dropna(subset=['geometry', 'Total Program GGRFFunding', 'ghg_efficiency', 'CIscore'])\n"
]
}
],
"metadata": {