Spaces:
Running
Running
Jellyfish042
commited on
Commit
·
c589db3
1
Parent(s):
ffd6dde
mutilang
Browse files
app.py
CHANGED
@@ -390,7 +390,22 @@ def read_all_data(folder_name):
|
|
390 |
return all_data, time_list
|
391 |
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
all_data, time_list = read_all_data('data')
|
|
|
394 |
|
395 |
time_list.sort()
|
396 |
last_period = time_list[-1]
|
|
|
390 |
return all_data, time_list
|
391 |
|
392 |
|
393 |
+
# def read_mutilange_data(folder_path='mutilang_data'):
|
394 |
+
# mutilange_data = {}
|
395 |
+
# excel_files = [os.path.join(folder_path, file) for file in os.listdir(folder_path) if file.endswith('.xlsx')]
|
396 |
+
# time_list = [file.split('.')[0] for file in excel_files]
|
397 |
+
# time_list = [x.split('\\')[-1] for x in time_list]
|
398 |
+
# for file_name in excel_files:
|
399 |
+
# if mutilange_data.get(file_name) is None:
|
400 |
+
# mutilange_data[file_name] = {}
|
401 |
+
# for sheet_name in sheet_name_list:
|
402 |
+
# mutilange_data[file_name][sheet_name] = rename_columns(
|
403 |
+
# pd.read_excel(file_name, sheet_name=sheet_name))
|
404 |
+
# return mutilange_data, time_list
|
405 |
+
|
406 |
+
|
407 |
all_data, time_list = read_all_data('data')
|
408 |
+
# muti_lang_data, muti_lang_time_list = read_mutilange_data()
|
409 |
|
410 |
time_list.sort()
|
411 |
last_period = time_list[-1]
|