laverdes commited on
Commit
57a2a8c
·
1 Parent(s): c6fb99b

test: axes and fix list

Browse files
Files changed (1) hide show
  1. pages/1_📈_Plotting.py +2 -2
pages/1_📈_Plotting.py CHANGED
@@ -43,7 +43,7 @@ if not df_base.empty:
43
  feature = "relative_pupil_dilation"
44
  df_plot = df_base.head(n_plot)
45
  st.caption(f"Selected number of samples: {n_plot}")
46
- st.caption(f"Size of df_plot: {df_plot.size}")
47
  df_plot = [ini_list.strip('][').split(',') for ini_list in df_plot[feature]]
48
  st.caption("The visualized data:")
49
  df_plot = pd.DataFrame(df_plot)
@@ -58,7 +58,7 @@ if 'df_plot' in list(st.session_state.keys()):
58
  with st.spinner(f"Drawing plot to visualize {plot.lower()}"):
59
  st.caption("Your visualization:")
60
  st.dataframe(st.session_state.df_plot)
61
- st.line_chart(st.session_state.df_plot, y=df_plot.columns)
62
  st.dataframe(st.session_state.df_plot.transpose())
63
  st.line_chart(st.session_state.df_plot.transpose(), y=list(df_plot.columns))
64
  elif df_base.empty and file:
 
43
  feature = "relative_pupil_dilation"
44
  df_plot = df_base.head(n_plot)
45
  st.caption(f"Selected number of samples: {n_plot}")
46
+ st.caption(f"Size of df_plot: {df_plot.axes}")
47
  df_plot = [ini_list.strip('][').split(',') for ini_list in df_plot[feature]]
48
  st.caption("The visualized data:")
49
  df_plot = pd.DataFrame(df_plot)
 
58
  with st.spinner(f"Drawing plot to visualize {plot.lower()}"):
59
  st.caption("Your visualization:")
60
  st.dataframe(st.session_state.df_plot)
61
+ st.line_chart(st.session_state.df_plot, y=list(df_plot.columns))
62
  st.dataframe(st.session_state.df_plot.transpose())
63
  st.line_chart(st.session_state.df_plot.transpose(), y=list(df_plot.columns))
64
  elif df_base.empty and file: