Spaces:
Sleeping
Sleeping
Commit ·
651d31d
1
Parent(s): 3ae88eb
Update app.py
Browse files
app.py
CHANGED
|
@@ -114,6 +114,9 @@ def process_csv(input_file):
|
|
| 114 |
# Set the value "明細" for rows where "請求先コード" is empty
|
| 115 |
df.loc[df["得意先コード"].isna(), "行形式"] = "明細"
|
| 116 |
|
|
|
|
|
|
|
|
|
|
| 117 |
|
| 118 |
# Save the modified dataframe to the output file
|
| 119 |
output_file_path = 'processed_file.csv'
|
|
|
|
| 114 |
# Set the value "明細" for rows where "請求先コード" is empty
|
| 115 |
df.loc[df["得意先コード"].isna(), "行形式"] = "明細"
|
| 116 |
|
| 117 |
+
# '得意先コード'列を整数型に変換
|
| 118 |
+
df['得意先コード'] = df['得意先コード'].astype(int)
|
| 119 |
+
|
| 120 |
|
| 121 |
# Save the modified dataframe to the output file
|
| 122 |
output_file_path = 'processed_file.csv'
|