laverdes commited on
Commit
ca1c617
·
1 Parent(s): 6ad44a2

test: df_plot_t

Browse files
Files changed (1) hide show
  1. pages/1_📈_Plotting.py +8 -4
pages/1_📈_Plotting.py CHANGED
@@ -46,7 +46,7 @@ if not df_base.empty:
46
  df_plot = [ini_list.strip('][').split(',') for ini_list in df_plot[feature]]
47
  df_plot = pd.DataFrame(df_plot)
48
  df_plot.columns = [str(column) for column in range(len(df_plot.columns))]
49
- st.caption(f"Columns of df_plot: {list(df_plot.columns)}")
50
  st.caption(f"Axes of df_plot: {df_plot.axes}")
51
  if 'df_plot' not in st.session_state:
52
  st.session_state['df_plot'] = df_plot
@@ -59,9 +59,13 @@ if 'df_plot' in list(st.session_state.keys()):
59
  st.caption("Your visualization:")
60
  st.caption("df_plot:")
61
  st.dataframe(st.session_state.df_plot)
62
- st.line_chart(st.session_state.df_plot, y=list(df_plot.columns))
63
  st.caption("df_plot transposed:")
64
- st.dataframe(st.session_state.df_plot.transpose())
65
- st.line_chart(st.session_state.df_plot.transpose(), y=list(df_plot.transpose().columns))
 
 
 
 
66
  elif df_base.empty and file:
67
  st.warning("Consider running outlier detection to clean your data!", icon="⚠️")
 
46
  df_plot = [ini_list.strip('][').split(',') for ini_list in df_plot[feature]]
47
  df_plot = pd.DataFrame(df_plot)
48
  df_plot.columns = [str(column) for column in range(len(df_plot.columns))]
49
+ # st.caption(f"Columns of df_plot: {list(df_plot.columns)}")
50
  st.caption(f"Axes of df_plot: {df_plot.axes}")
51
  if 'df_plot' not in st.session_state:
52
  st.session_state['df_plot'] = df_plot
 
59
  st.caption("Your visualization:")
60
  st.caption("df_plot:")
61
  st.dataframe(st.session_state.df_plot)
62
+ # st.line_chart(st.session_state.df_plot, y=list(df_plot.columns))
63
  st.caption("df_plot transposed:")
64
+ df_plot_t = df_plot.copy(deep=True).transpose()
65
+ df_plot_t.columns = [str(column) for column in range(len(df_plot_t.columns))]
66
+ st.caption(f"Columns of df_plot: {list(df_plot_t.columns)}")
67
+ st.caption(f"Axes of df_plot: {df_plot_t.axes}")
68
+ st.dataframe(st.session_state.df_plot_t)
69
+ st.line_chart(st.session_state.df_plot_t, y=list(df_plot_t.columns))
70
  elif df_base.empty and file:
71
  st.warning("Consider running outlier detection to clean your data!", icon="⚠️")