awacke1 commited on
Commit
e8bd1d6
·
1 Parent(s): 6e089da

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -36,7 +36,8 @@ def plot_state_outline(state_code):
36
  # Read U.S. geometries file
37
  gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
38
  # Filter data for the given state
39
- gdf_state = gdf[gdf['iso_a3'] == 'USA']
 
40
  # Plot the geometry
41
  ax = gdf_state.boundary.plot()
42
  plt.title(f"{state_code} State Outline")
 
36
  # Read U.S. geometries file
37
  gdf = gpd.read_file(gpd.datasets.get_path('naturalearth_lowres'))
38
  # Filter data for the given state
39
+ #gdf_state = gdf[gdf['iso_a3'] == 'USA']
40
+ gdf_state = gdf[gdf['iso_a3'] == 'state_code']
41
  # Plot the geometry
42
  ax = gdf_state.boundary.plot()
43
  plt.title(f"{state_code} State Outline")