This commit is contained in:
2025-09-10 18:12:33 +05:00
parent 81fe56637d
commit 50090522da
6 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
./venv

0
README_vault.md Normal file
View File

0
create_test_files.py Normal file
View File

0
test-start.py Normal file
View File

0
usage_examples.py Normal file
View File

View File

@@ -120,10 +120,10 @@ if __name__ == "__main__":
print("\n=== Пример 3: С фильтром строк ===")
def my_filter(row):
# Исключаем строки где первый столбец пустой
return not pd.isna(row.iloc[0]) and row.iloc[0] != ""
return not pd.isna(row.iloc[4]) and row.iloc[0] != ""
# Ищем файлы в папке ПРИЕММ и сохраняем результат как merged.xlsx
# Попробуйте с разными вариантами имени папки:
vault_instance.merge_files(".\ПРИЕММ", "merged.xlsx", row_filter=my_filter)
vault_instance.merge_files(".\Свод Нозология", "merged.xlsx", row_filter=my_filter)
# или
# vault_instance.merge_files(r"ПРИЕММ", "merged.xlsx", row_filter=my_filter)