Spaces:
Sleeping
Sleeping
Commit ·
ba5ad5d
1
Parent(s): c289d70
progress more 18
Browse files
app.py
CHANGED
|
@@ -109,7 +109,7 @@ def process_file(uploaded_file):
|
|
| 109 |
df = pd.read_excel(uploaded_file, sheet_name='Публикации')
|
| 110 |
|
| 111 |
# Apply fuzzy deduplication
|
| 112 |
-
|
| 113 |
lambda x: fuzzy_deduplicate(x, 'Выдержки из текста', 65)
|
| 114 |
).reset_index(drop=True)
|
| 115 |
|
|
|
|
| 109 |
df = pd.read_excel(uploaded_file, sheet_name='Публикации')
|
| 110 |
|
| 111 |
# Apply fuzzy deduplication
|
| 112 |
+
df = df.groupby('Объект').apply(
|
| 113 |
lambda x: fuzzy_deduplicate(x, 'Выдержки из текста', 65)
|
| 114 |
).reset_index(drop=True)
|
| 115 |
|