so good
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
./venv
|
||||||
0
README_vault.md
Normal file
0
README_vault.md
Normal file
0
create_test_files.py
Normal file
0
create_test_files.py
Normal file
0
test-start.py
Normal file
0
test-start.py
Normal file
0
usage_examples.py
Normal file
0
usage_examples.py
Normal file
@@ -120,10 +120,10 @@ if __name__ == "__main__":
|
|||||||
print("\n=== Пример 3: С фильтром строк ===")
|
print("\n=== Пример 3: С фильтром строк ===")
|
||||||
def my_filter(row):
|
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
|
# Ищем файлы в папке ПРИЕММ и сохраняем результат как 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)
|
# vault_instance.merge_files(r"ПРИЕММ", "merged.xlsx", row_filter=my_filter)
|
||||||
|
|||||||
Reference in New Issue
Block a user