I would like to create a slider where you can choose a period between two dates. First of all, from what I read on the website, a slider is only available to display integers? Is this correct?
Second, there seems to be a bug with the st.date_input API. If I type this “st.sidebar.date_input(‘start date’, datetime.date(2011,1,1))”, the code returns an error: descriptor ‘date’ requires a ‘datetime.datetime’ object but received a ‘int’.
Can someone help me out?