laverdes commited on
Commit
5a72084
ยท
1 Parent(s): ac2847a

fix: slider range

Browse files
Files changed (1) hide show
  1. 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, start=1))
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! ๐Ÿ“Š")