You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loads CDC Environmental Justice Index scores for an area, produces a dropdwon widget that enables selecting between different EJI scores, and returns a map and/or geodataframe.
Download a copy of the EJI geodatabase and upload somewhere (where?)
Write load_CDC_EJI()
def load_CDC_EJI(area, area_type):
import geopandas
import folium
from ECHO_modules.get_data import get_spatial_data
from ECHO_modules.geographies import spatial_tables
from ECHO_modules.utilities import choropleth
this_area, state = get_spatial_data(region_type=area_type, states=[state_widget.value], spatial_tables=spatial_tables, region_filter=area.title()) # Get shape
#unzip and load US.gdb from CDC
features = geopandas.read_file("US.gdb", mask=this_area) Note: Mask doesn't work perfectly, may still want to do attribute filter below
# interactive widget selection here...
map = choropleth(features, "EP_DIABETES", key_id="GEOID")
return map, features
See watershed notebook for an example of how to do interactive widget selection:
Loads CDC Environmental Justice Index scores for an area, produces a dropdwon widget that enables selecting between different EJI scores, and returns a map and/or geodataframe.
load_CDC_EJI()
See watershed notebook for an example of how to do interactive widget selection:
ECHO_modules/class.py
Line 830 in aa1eaf2
The text was updated successfully, but these errors were encountered: