this should functianally work

This commit is contained in:
2025-09-11 05:49:26 +02:00
parent 474482a752
commit a601fb414c
4 changed files with 60 additions and 5 deletions

View File

@ -36,8 +36,8 @@ def render(app: Dash, data: pd.DataFrame) -> html.Div:
table_data = hits_data.groupby(MTBFSchema.AIR).agg(
count=(hits_col, 'size'),
air_issue_description=(MTBFSchema.AIR_ISSUE_DESCRIPTION, lambda x: ', '.join(x.unique())),
close_notes=(MTBFSchema.CLOSE_NOTES, lambda x: ', '.join(x.unique()))
air_issue_description=(MTBFSchema.AIR_ISSUE_DESCRIPTION, lambda x: ', '.join(x.dropna().astype(str).unique())),
close_notes=(MTBFSchema.CLOSE_NOTES, lambda x: ', '.join(x.dropna().astype(str).unique()))
).reset_index()
if 'remove_single' in single_hitter_filter:
@ -56,7 +56,9 @@ def render(app: Dash, data: pd.DataFrame) -> html.Div:
columns=[{"name": i, "id": i} for i in table_data.columns],
page_size=10,
row_selectable='single',
selected_rows=[]
selected_rows=[],
filter_action='native',
sort_action='native'
)
@app.callback(