From 7e54c54ec7340a7e281696986aab834f410ffc6e Mon Sep 17 00:00:00 2001 From: Kazuki Imamura Date: Sat, 17 Feb 2024 16:39:33 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=98=E3=83=83=E3=83=80=E3=83=BC=E8=A1=8C?= =?UTF-8?q?=E3=82=92=E6=8A=BD=E5=87=BA=20(#2)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.py b/main.py index 1311483..5cba86c 100644 --- a/main.py +++ b/main.py @@ -18,8 +18,12 @@ j += 1 df = df.replace('\n', '', regex=True).replace('\r', '', regex=True).replace('\r\n', '', regex=True).replace('\n\r', '', regex=True) print(df) + if j == 1: + df_header = df.iloc[:2] + print(df_header) df.to_csv(f"./files/{j}.csv", index=None) integrate("./files", f"./output_files/output{i}.csv") shutil.rmtree("./files") os.mkdir("./files") + shutil.rmtree("./files")