James McCool commited on
Commit
7de59f1
·
1 Parent(s): a993f86

Add display of 'Count' in stack frame output in app.py

Browse files

- Enhanced the data visibility by including the 'Count' column in the output of the stack frame, allowing for better analysis of stack exposure metrics.

Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -313,6 +313,7 @@ with tab2:
313
  stack_frame = each_stack.to_frame().reset_index().rename(columns={'index': 'Stack', 'count': 'Count'})
314
  stack_frame['Percent'] = stack_frame['Count'] / each_stacks_len_set[stack_count_var]
315
  stack_frame = stack_frame[['Stack', 'Count', 'Percent']]
 
316
  stack_frame = stack_frame.rename(columns={'Percent': f'Exposure {each_set_name[stack_count_var]}'})
317
  if 'stack_frame' not in st.session_state:
318
  st.session_state['stack_frame'] = stack_frame
 
313
  stack_frame = each_stack.to_frame().reset_index().rename(columns={'index': 'Stack', 'count': 'Count'})
314
  stack_frame['Percent'] = stack_frame['Count'] / each_stacks_len_set[stack_count_var]
315
  stack_frame = stack_frame[['Stack', 'Count', 'Percent']]
316
+ st.write(stack_frame['Count'])
317
  stack_frame = stack_frame.rename(columns={'Percent': f'Exposure {each_set_name[stack_count_var]}'})
318
  if 'stack_frame' not in st.session_state:
319
  st.session_state['stack_frame'] = stack_frame