awacke1 commited on
Commit
20b8116
·
1 Parent(s): e8bd1d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,8 +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
- 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")
 
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")