Update classification.py
Browse files- classification.py +2 -2
classification.py
CHANGED
@@ -94,7 +94,7 @@ categories = [
|
|
94 |
}
|
95 |
]
|
96 |
|
97 |
-
def
|
98 |
categories = df.to_dict("records")
|
99 |
categories_all = df_all.to_dict("list")
|
100 |
for cat in categories:
|
@@ -109,7 +109,7 @@ def addCategories(df,df_all):
|
|
109 |
df_cate = pd.DataFrame(categories)
|
110 |
df_cat_filter = df_cate.to_dict("list")["topic"]
|
111 |
|
112 |
-
def
|
113 |
value_filtered = []
|
114 |
categories = categories.to_dict("records")
|
115 |
for cat in categories:
|
|
|
94 |
}
|
95 |
]
|
96 |
|
97 |
+
def add_categories(df,df_all):
|
98 |
categories = df.to_dict("records")
|
99 |
categories_all = df_all.to_dict("list")
|
100 |
for cat in categories:
|
|
|
109 |
df_cate = pd.DataFrame(categories)
|
110 |
df_cat_filter = df_cate.to_dict("list")["topic"]
|
111 |
|
112 |
+
def filter_by_topics(filters, categories):
|
113 |
value_filtered = []
|
114 |
categories = categories.to_dict("records")
|
115 |
for cat in categories:
|