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 da2900f commit d938967
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def compute_hexes(_gdf, gdf_name, rank, taxa, zoom, distinct_taxa = ""):
)

if distinct_taxa != "": # count n unique taxa
sel = sel.agg(n = _[distinct_taxa].nunique())
sel = sel.agg(n = _[distinct_taxa].nunique())
else: # count occurrences
sel = sel.agg(n = _.count())

Expand Down Expand Up @@ -135,7 +135,7 @@ def bar_chart(gdf_name, rank, taxa, zoom, distinct_taxa = ""):
sel = sel.agg(n = _[distinct_taxa].nunique(), area = _.area.sum())
else:
sel = sel.agg(n = _.count(), area = _.area.sum())
sel = (sel.
sel = (sel
.mutate(density = _.n /_.area)
.group_by(_.grade)
.agg(mean = _.density.mean(),sd = _.density.std())
Expand Down

0 comments on commit d938967

Please sign in to comment.