Like randy said, a more complete code snippet may help us better to understand the issue.
From what you’ve posted, I suppose this slider is inside some for or while loop.
If that’s the case, make sure to have different keys for each iteration.
@randyzwitch@okld
Thank you for the reply! Indeed I put the
budget = st.slider(‘Select Budget’, min_value=1000, max_value=8000, step=5000, key=‘2’)
df = df[df[‘price’] <= budget]
Under a for loop for the select box with the wrong indentation.
Now it’s all good. Thanks!