码一下几种常见的打开中文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")