DontPlanToEnd commited on
Commit
e44778f
1 Parent(s): 6916654

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def update_table(df: pd.DataFrame, query: str, param_ranges: list) -> pd.DataFra
46
  filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]
47
 
48
  if query:
49
- filtered_df = filtered_df[filtered_df.apply(lambda row: query.lower() in row.to_string().lower(), axis=1)]
50
 
51
  return filtered_df[UGI_COLS] # Return only the columns defined in UGI_COLS
52
 
 
46
  filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]
47
 
48
  if query:
49
+ filtered_df = filtered_df[filtered_df['Model'].str.contains(query, case=False)]
50
 
51
  return filtered_df[UGI_COLS] # Return only the columns defined in UGI_COLS
52