   st.map(filtered_data)
You should see the data update instantly.
To draw this map we used the st.map function that's built into Streamlit, but
if you'd like to visualize complex map data, we encourage you to take a look at
the st.pydeck_chart.
Filter results with a slider
In the last section, when you drew the map, the time used to filter results was
hardcoded into the script, but what if we wanted to let a reader dynamically
filter the data in real time? Using Streamlit's widgets you can. Let's add a
slider to the app with the st.slider() method.
Locate hour_to_filter and replace it with this code snippet:
python
   hour_to_filter = st.slider('hour', 0, 23, 17)  # min: 0h, max: 23h, default: 17h
Use the slider and watch the map update in real time.
Use a button to toggle data
Sliders are just one way to dynamically change the composition of your app.
