filter data
Browse files
app.py
CHANGED
|
@@ -97,9 +97,9 @@ if df is not None:
|
|
| 97 |
classification_df["comment"] = classification_df["comment"].apply(lambda x: cleaning_for_phobert(x))
|
| 98 |
|
| 99 |
labels = ["Quality", "Serve", "Pack", "Shipping", "Price", "Other"]
|
| 100 |
-
|
| 101 |
result = categorize_comments(classification_df)
|
| 102 |
classification_df[labels] = result
|
|
|
|
| 103 |
classification_df["time"] = pd.to_datetime(classification_df["time"], unit='s') + pd.Timedelta(hours=7)
|
| 104 |
|
| 105 |
col_1, col_2, col_3 = st.columns([1, 2, 1], gap="large")
|
|
|
|
| 97 |
classification_df["comment"] = classification_df["comment"].apply(lambda x: cleaning_for_phobert(x))
|
| 98 |
|
| 99 |
labels = ["Quality", "Serve", "Pack", "Shipping", "Price", "Other"]
|
|
|
|
| 100 |
result = categorize_comments(classification_df)
|
| 101 |
classification_df[labels] = result
|
| 102 |
+
classification_df = classification_df[classification_df["Other"] != 1]
|
| 103 |
classification_df["time"] = pd.to_datetime(classification_df["time"], unit='s') + pd.Timedelta(hours=7)
|
| 104 |
|
| 105 |
col_1, col_2, col_3 = st.columns([1, 2, 1], gap="large")
|