天天看點

python資料寫入csv打開亂碼

解決方法很簡單:

import pandas as pd
df.to_csv('xxx.csv', encoding='utf-8-sig')