Skip to content

Commit

Permalink
FIx for compound expansion
Browse files Browse the repository at this point in the history
  • Loading branch information
Darren Edge committed Apr 17, 2024
1 parent 7eca347 commit 404006b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/ui_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ def prepare_input_df(workflow, input_df_var, processed_df_var, output_df_var, id
unique_values = [x for x in unique_values if x != '']
for val in unique_values:
st.session_state[f'{workflow}_{val}'] = False
processed_df_var.value[val] = values.apply(lambda x: 1 if val in x and val != 'nan' else None)
processed_df_var.value[val] = values.apply(lambda x: 1 if val in x and val != 'nan' else '')
# processed_df_var.value[col][col+'_'+val] = values.apply(lambda x: 1 if val in x and val != 'nan' else None)
processed_df_var.value.drop(columns=[col], inplace=True)

Expand Down

0 comments on commit 404006b

Please sign in to comment.