From d9389673363473d052fe4c8ef6ee7d4bf4007093 Mon Sep 17 00:00:00 2001 From: Carl Boettiger Date: Tue, 3 Dec 2024 01:13:39 +0000 Subject: [PATCH] :see_no_evil: --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index c38ec8b..db9a1c5 100644 --- a/app.py +++ b/app.py @@ -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()) @@ -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())