thought it did more
This commit is contained in:
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user