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

test: y with string casting

Browse files
Files changed (1) hide show
  1. pages/1_📈_Plotting.py +3 -3
pages/1_📈_Plotting.py CHANGED
@@ -43,8 +43,8 @@ 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.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)
50
  # st.dataframe(df_plot)
@@ -58,8 +58,8 @@ 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=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:
65
  st.warning("Consider running outlier detection to clean your data!", icon="⚠️")
 
43
  feature = "relative_pupil_dilation"
44
  df_plot = df_base.head(n_plot)
45
  st.caption(f"Selected number of samples: {n_plot}")
 
46
  df_plot = [ini_list.strip('][').split(',') for ini_list in df_plot[feature]]
47
+ st.caption(f"Size of df_plot: {df_plot.axes}")
48
  st.caption("The visualized data:")
49
  df_plot = pd.DataFrame(df_plot)
50
  # st.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=[str(v) for v in list(df_plot.columns)])
62
  st.dataframe(st.session_state.df_plot.transpose())
63
+ st.line_chart(st.session_state.df_plot.transpose(), y=[str(v) for v in list(df_plot.transpose().columns)])
64
  elif df_base.empty and file:
65
  st.warning("Consider running outlier detection to clean your data!", icon="⚠️")