jcmachicao commited on
Commit
32068c7
1 Parent(s): c23fdff

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -8,8 +8,8 @@ if file is not None:
8
  # Load the Excel file into a Pandas dataframe
9
  df = pd.read_excel(file, engine='openpyxl')
10
  # Show the dataframe in Streamlit
11
- st.write(df.head())
12
- st.write(df.columns)
13
 
14
  # Sidebar option
15
  option = st.sidebar.selectbox('Clasificar resultados por:', ('Pregunta', 'Categoria'))
@@ -25,7 +25,7 @@ if file is not None:
25
  for name, group in grouped_df:
26
  text += f'{name}:\n\n'
27
  for index, row in group.iterrows():
28
- text += f'- {row["Item"]}\n'
29
  text += '\n'
30
 
31
  # Download link for text file
 
8
  # Load the Excel file into a Pandas dataframe
9
  df = pd.read_excel(file, engine='openpyxl')
10
  # Show the dataframe in Streamlit
11
+ #st.write(df.head())
12
+ st.write(list(df.columns))
13
 
14
  # Sidebar option
15
  option = st.sidebar.selectbox('Clasificar resultados por:', ('Pregunta', 'Categoria'))
 
25
  for name, group in grouped_df:
26
  text += f'{name}:\n\n'
27
  for index, row in group.iterrows():
28
+ text += f'- {row["Diferencia"]}\n'
29
  text += '\n'
30
 
31
  # Download link for text file