Skip to content

Commit

Permalink
fix flow.py radiobox
Browse files Browse the repository at this point in the history
  • Loading branch information
winsphinx committed Mar 2, 2024
1 parent aad3da4 commit 7543a10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def match_file(self):
df_host = pd.read_excel(file)
cols = df_host.columns.to_list()

group_key = radio("选择作为分组依据的列名(单选)", cols)
group_key = radio("选择作为分组依据的列名(单选)", cols, value=cols[2], required=True)
cols.remove(group_key)
sum_keys = checkbox("选择要求和的列名(可多选)", cols)
df_host = df_host.groupby(by=[group_key]).agg({key: "sum" for key in sum_keys}).reset_index()
Expand Down

0 comments on commit 7543a10

Please sign in to comment.