Spaces:
Sleeping
Sleeping
| 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() | |