cboettig commited on
Commit
2b5427d
·
1 Parent(s): e1ada77

testing h3

Browse files
Files changed (2) hide show
  1. app.py +2 -1
  2. uk.csv.gz +3 -0
app.py CHANGED
@@ -42,6 +42,7 @@ def load_data():
42
  data = (df
43
  .dropna(["decimallongitude", "decimallatitude", "year"], how="any")
44
  .filter([_.order == "Lepidoptera", _.countrycode=="GB"])
 
45
  .select(['year', 'decimallongitude', 'decimallatitude'])
46
  )
47
  return data
@@ -116,7 +117,7 @@ def update_query_params():
116
  with row1_1:
117
  st.title("GBIF Butterfly Occurances")
118
  year_selected = st.slider(
119
- "Select hour of pickup", 2010, 2023, key="year", on_change=update_query_params
120
  )
121
 
122
 
 
42
  data = (df
43
  .dropna(["decimallongitude", "decimallatitude", "year"], how="any")
44
  .filter([_.order == "Lepidoptera", _.countrycode=="GB"])
45
+ .filter(_.year >= 2010)
46
  .select(['year', 'decimallongitude', 'decimallatitude'])
47
  )
48
  return data
 
117
  with row1_1:
118
  st.title("GBIF Butterfly Occurances")
119
  year_selected = st.slider(
120
+ "Select year", 2010, 2023, key="year", on_change=update_query_params
121
  )
122
 
123
 
uk.csv.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ced2e4e5b2558830129a13acba50c321d76bd531bb9e76c64422cf5f100ca98
3
+ size 54615