Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def process_csv(input_file):
|
|
| 29 |
'得意先名': 'タグ',
|
| 30 |
'行摘要': '得意先名',
|
| 31 |
'ユーザーNO1': '明細ユーザ定義項目1',
|
| 32 |
-
'受注_備考': '
|
| 33 |
}
|
| 34 |
df.rename(columns=column_name_mapping, inplace=True)
|
| 35 |
|
|
@@ -54,7 +54,7 @@ def process_csv(input_file):
|
|
| 54 |
new_group.iloc[0, new_group.columns.get_loc('単価')] = ''
|
| 55 |
new_group.iloc[0, new_group.columns.get_loc('単位')] = ''
|
| 56 |
new_group.iloc[0, new_group.columns.get_loc('明細ユーザ定義項目1')] = ''
|
| 57 |
-
clear_cols = ['得意先コード', '請求日', '請求番号', 'ユーザ定義項目1', 'タグ', '得意先名', '
|
| 58 |
for col in clear_cols:
|
| 59 |
if col in new_group.columns:
|
| 60 |
new_group.iloc[1:, new_group.columns.get_loc(col)] = ''
|
|
|
|
| 29 |
'得意先名': 'タグ',
|
| 30 |
'行摘要': '得意先名',
|
| 31 |
'ユーザーNO1': '明細ユーザ定義項目1',
|
| 32 |
+
'受注_備考': '備考'
|
| 33 |
}
|
| 34 |
df.rename(columns=column_name_mapping, inplace=True)
|
| 35 |
|
|
|
|
| 54 |
new_group.iloc[0, new_group.columns.get_loc('単価')] = ''
|
| 55 |
new_group.iloc[0, new_group.columns.get_loc('単位')] = ''
|
| 56 |
new_group.iloc[0, new_group.columns.get_loc('明細ユーザ定義項目1')] = ''
|
| 57 |
+
clear_cols = ['得意先コード', '請求日', '請求番号', 'ユーザ定義項目1', 'タグ', '得意先名', '備考']
|
| 58 |
for col in clear_cols:
|
| 59 |
if col in new_group.columns:
|
| 60 |
new_group.iloc[1:, new_group.columns.get_loc(col)] = ''
|