laverdes commited on
Commit
b0543c7
·
1 Parent(s): be6e98a

chore: remove 'Unnamed: 0' index column

Browse files
Files changed (1) hide show
  1. pages/1_📈_Plotting.py +2 -0
pages/1_📈_Plotting.py CHANGED
@@ -31,6 +31,8 @@ with st.sidebar:
31
  file = st.file_uploader("Load CSV file", accept_multiple_files = False)
32
  if file:
33
  df = pd.read_csv(file, index_col = False)
 
 
34
  if 'df' not in st.session_state:
35
  st.session_state['df'] = df
36
  st.success("Your data has been successfully loaded! 🤗")
 
31
  file = st.file_uploader("Load CSV file", accept_multiple_files = False)
32
  if file:
33
  df = pd.read_csv(file, index_col = False)
34
+ df.index = df['Unnamed: 0'].tolist()
35
+ del df['Unnamed: 0']
36
  if 'df' not in st.session_state:
37
  st.session_state['df'] = df
38
  st.success("Your data has been successfully loaded! 🤗")