Update app.py
Browse files
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 |
-
|
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")
|