讀取csv文件
編碼為utf-8进每,不設(shè)置第一列索引
import pandas as pd
zhuanti = pd.read_csv(open('C:/MongoDB/Server/3.4/bin/xiaozhu.csv',encoding='utf-8'))
print(zhuanti)
編碼為utf-8汹粤,設(shè)置第一列索引
import pandas as pd
zhuanti = pd.read_csv(open('C:/MongoDB/Server/3.4/bin/xiaozhu.csv',encoding='utf-8'),index_col=0)
print(zhuanti)