Spaces:
Sleeping
Sleeping
File size: 663 Bytes
895a3bf |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
import streamlit as st
import leafmap.maplibregl as leafmap
import ibis
from ibis import _
x = st.slider('Select a value')
st.write(x, 'squared is', x * x)
st.title('Select a redlined city')
con = ibis.duckdb.connect()
# LOAD RED LINING
redlines = con.read_geo("/vsicurl/https://dsl.richmond.edu/panorama/redlining/static/mappinginequality.gpkg")
option = st.selectbox(
"Select a city",
("San Francisco", "Berkeley", "Oakland"),
index=None,
placeholder="Select contact method...",
)
city = redlines.filter(_.city == option)
st.write("You selected:", option)
# Next select code from our exersizes
m = leafmap.Map()
m.to_streamlit()
|