Spaces:
Sleeping
Sleeping
...
Browse files
app.py
CHANGED
@@ -79,9 +79,9 @@ def filterdata(df, year):
|
|
79 |
data = (
|
80 |
df.
|
81 |
filter(_.year == year).
|
82 |
-
select(_
|
83 |
distinct().
|
84 |
-
group_by(_
|
85 |
aggregate(n = _.count()).
|
86 |
mutate(color = 255 * _.n / _.n.max()).
|
87 |
to_pandas()
|
|
|
79 |
data = (
|
80 |
df.
|
81 |
filter(_.year == year).
|
82 |
+
select(_[hzoom], _.species).
|
83 |
distinct().
|
84 |
+
group_by(_[hzoom]).
|
85 |
aggregate(n = _.count()).
|
86 |
mutate(color = 255 * _.n / _.n.max()).
|
87 |
to_pandas()
|