Spaces:
Sleeping
Sleeping
:see_no_evil:
Browse files
app.py
CHANGED
@@ -98,6 +98,9 @@ def compute_hexes(_gdf, gdf_name, rank, taxa, zoom, distinct_taxa = ""):
|
|
98 |
.filter(_[rank] == taxa)
|
99 |
)
|
100 |
|
|
|
|
|
|
|
101 |
sel = (sel
|
102 |
.rename(hex = "h" + str(zoom)) # h3 == 41,150 hexes. h5 == 2,016,830 hexes
|
103 |
.group_by(_.hex)
|
@@ -189,7 +192,7 @@ if submitted:
|
|
189 |
|
190 |
with chartcol:
|
191 |
bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
|
192 |
-
st.markdown("Mean density of
|
193 |
|
194 |
|
195 |
|
|
|
98 |
.filter(_[rank] == taxa)
|
99 |
)
|
100 |
|
101 |
+
if gdf_name != "All":
|
102 |
+
sel = sel.filter(_.city == gdf_name)
|
103 |
+
|
104 |
sel = (sel
|
105 |
.rename(hex = "h" + str(zoom)) # h3 == 41,150 hexes. h5 == 2,016,830 hexes
|
106 |
.group_by(_.hex)
|
|
|
192 |
|
193 |
with chartcol:
|
194 |
bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = distinct_taxa)
|
195 |
+
st.markdown(f"Mean density of {count} by redline grade, count per hectre for {gdf_name}")
|
196 |
|
197 |
|
198 |
|