Skip to content

Commit

Permalink
🙈
Browse files Browse the repository at this point in the history
  • Loading branch information
cboettig committed Dec 3, 2024
1 parent 60c8755 commit 59619f7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ def compute_hexes(_gdf, gdf_name, rank, taxa, zoom, distinct_taxa = ""):
.filter(_[rank] == taxa)
)

if gdf_name != "All":
sel = sel.filter(_.city == gdf_name)

sel = (sel
.rename(hex = "h" + str(zoom)) # h3 == 41,150 hexes. h5 == 2,016,830 hexes
.group_by(_.hex)
Expand Down Expand Up @@ -189,7 +192,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):

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



Expand Down

0 comments on commit 59619f7

Please sign in to comment.