Spaces:
Runtime error
Runtime error
fix: slider range
Browse files- pages/1_๐_Plotting.py +2 -2
pages/1_๐_Plotting.py
CHANGED
@@ -47,7 +47,7 @@ df_base = st.session_state.df if 'df' in list(st.session_state.keys()) else pd.D
|
|
47 |
n = len(df_base)
|
48 |
if n:
|
49 |
st.info(f"Your data has {n} samples.")
|
50 |
-
slider_range = list(range(n
|
51 |
-
n_plot = st.slider("How many samples do you want to plot in the same graph", slider_range[0], slider_range[-1], 5)
|
52 |
st.write(f"Action: {plot} using {n_plot} samples")
|
53 |
st.button("Plot now! ๐")
|
|
|
47 |
n = len(df_base)
|
48 |
if n:
|
49 |
st.info(f"Your data has {n} samples.")
|
50 |
+
slider_range = list(range(n))
|
51 |
+
n_plot = st.slider("How many samples do you want to plot in the same graph", slider_range[0]+1, slider_range[-1]+1, 5)
|
52 |
st.write(f"Action: {plot} using {n_plot} samples")
|
53 |
st.button("Plot now! ๐")
|