Skip to content

Commit

Permalink
ヘッダー行を抽出 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaizumaki authored Feb 17, 2024
1 parent 9e47aaf commit 7e54c54
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 7e54c54

Please sign in to comment.