碼一下幾種常見的打開中文csv的編碼方式
import pandas as pd
path = "data/xxx.csv" # 這里換成你要的路徑
# 一般encode方式在以下幾種中選擇
pd.read_csv(path, encoding = "gb18030")
pd.read_csv(path, encoding = "gb2312")
pd.read_csv(path, encoding = "gbk")
碼一下幾種常見的打開中文csv的編碼方式
import pandas as pd
path = "data/xxx.csv" # 這里換成你要的路徑
# 一般encode方式在以下幾種中選擇
pd.read_csv(path, encoding = "gb18030")
pd.read_csv(path, encoding = "gb2312")
pd.read_csv(path, encoding = "gbk")