rhea2809 commited on
Commit
96260cf
·
verified ·
1 Parent(s): 3bd6bb0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -65,9 +65,11 @@ class DataList:
65
  df = df.loc[df.Type.isin(set(filter_names))]
66
  temp = []
67
  for x in filter_names2:
68
- temp += df[df.name_lowercase.str.contains(x.lower())]
69
 
70
- return temp
 
 
71
 
72
  @staticmethod
73
  def to_html(df: pd.DataFrame, table_header: str) -> str:
 
65
  df = df.loc[df.Type.isin(set(filter_names))]
66
  temp = []
67
  for x in filter_names2:
68
+ temp.append(df[df.name_lowercase.str.contains(x.lower())])
69
 
70
+ df= pd.Dataframe(temp)
71
+
72
+ return df
73
 
74
  @staticmethod
75
  def to_html(df: pd.DataFrame, table_header: str) -> str: