rhea2809 commited on
Commit
906872c
1 Parent(s): 7e8ca2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -56,16 +56,14 @@ class DataList:
56
  df = self.table
57
  if search_query:
58
  df = df[df.name_lowercase.str.contains(search_query.lower())]
 
59
  df = self.filter_table(df, filter_names,filter_names2,filter_names3)
60
  result = self.to_html(df, self.table_header)
61
  return result
62
 
63
  @staticmethod
64
- def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str], filter_name3: list[str],) -> pd.DataFrame:
65
  df = df.loc[df.Type.isin(set(filter_names))]
66
- print(filter_name3)
67
- vals= filter_names3
68
- df = df.loc[df.Module.isin(list(vals))]
69
  return df
70
 
71
  @staticmethod
 
56
  df = self.table
57
  if search_query:
58
  df = df[df.name_lowercase.str.contains(search_query.lower())]
59
+ df = df.loc[df.Module.isin(list(filter_name3))]
60
  df = self.filter_table(df, filter_names,filter_names2,filter_names3)
61
  result = self.to_html(df, self.table_header)
62
  return result
63
 
64
  @staticmethod
65
+ def filter_table(df: pd.DataFrame, filter_names: list[str], filter_names2: list[str]) -> pd.DataFrame:
66
  df = df.loc[df.Type.isin(set(filter_names))]
 
 
 
67
  return df
68
 
69
  @staticmethod