Skip to content

Commit 59619f7

Browse files
committed
🙈
1 parent 60c8755 commit 59619f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ def compute_hexes(_gdf, gdf_name, rank, taxa, zoom, distinct_taxa = ""):
9898
.filter(_[rank] == taxa)
9999
)
100100

101+
if gdf_name != "All":
102+
sel = sel.filter(_.city == gdf_name)
103+
101104
sel = (sel
102105
.rename(hex = "h" + str(zoom)) # h3 == 41,150 hexes. h5 == 2,016,830 hexes
103106
.group_by(_.hex)
@@ -189,7 +192,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):
189192

190193
with chartcol:
191194
bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
192-
st.markdown("Mean density of " + count + " by redline grade, count per hectre")
195+
st.markdown(f"Mean density of {count} by redline grade, count per hectre for {gdf_name}")
193196

194197

195198

0 commit comments

Comments
 (0)