DontPlanToEnd commited on
Commit
45d81e6
1 Parent(s): 70ac7c2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -38,9 +38,9 @@ def update_table(df: pd.DataFrame, query: str, param_ranges: list) -> pd.DataFra
38
  elif param_range == '~34':
39
  conditions.append(((filtered_df['Params'] >= 28) & (filtered_df['Params'] < 40)))
40
  elif param_range == '~50':
41
- conditions.append(((filtered_df['Params'] >= 40) & (filtered_df['Params'] < 60)))
42
  elif param_range == '~70+':
43
- conditions.append((filtered_df['Params'] >= 60))
44
 
45
  if conditions:
46
  filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]
 
38
  elif param_range == '~34':
39
  conditions.append(((filtered_df['Params'] >= 28) & (filtered_df['Params'] < 40)))
40
  elif param_range == '~50':
41
+ conditions.append(((filtered_df['Params'] >= 40) & (filtered_df['Params'] < 65)))
42
  elif param_range == '~70+':
43
+ conditions.append((filtered_df['Params'] >= 65))
44
 
45
  if conditions:
46
  filtered_df = filtered_df[pd.concat(conditions, axis=1).any(axis=1)]