Add debug

This commit is contained in:
Bertrand Benjamin 2023-12-27 19:58:12 +01:00
parent 48e75358ac
commit b15b059e2a
1 changed files with 2 additions and 0 deletions

View File

@ -1,4 +1,5 @@
import glob
import logging
import pandas as pd
@ -6,6 +7,7 @@ import pandas as pd
def join_excel(src, dest, file_pattern):
"""Join every excel file in arc respecting file_pattern into on unique file in dist"""
filenames = list_files(src, file_pattern)
logging.debug(f"Concatenate {filenames}")
dfs = extract_dfs(filenames)
joined_df = pd.concat(dfs)
joined_df.to_excel(dest, index=False)