0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Pythonを使ってみよう(マクロでやっていた自動化を実現してみる)文字化けを直す

Posted at

これは意外に素直におわった

https://qiita.com/trhstrhsr/items/04d79cd4414e3d500347

.py
import glob
import pandas as pd

root_path = r"\\172.17.2.1\user\PLANT\90_システム\400.アカウント\430.beat-box\432.ファイルの保存\*"
items = glob.glob(root_path)



df = pd.DataFrame(items)

# DataFrameをCSVに保存
df.to_csv(r"C:\Users\maedat\OneDrive - ●●●●株式会社\デスクトップ\output.csv", index=False,  encoding="shift_jis")

完成です

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?