我想使用熊猫阅读CSV文件

时间:2019-07-13 17:38:22

标签: python pandas

我的数据集就是这样 team1team2seasondatecompetitionmatch_numberGroundcity

我想要这样的输出:

team1   team2   season  date    competition match_number    Ground  city

import pandas as pd df=pd.read_csv("C://Users//C_v//Desktop//test.csv",delimiter=",")
df

它给我这样的输出:

team1team2seasondatecompetitionmatch_numberGroundcity
0   Pakistan\tIndia\t2006\t2/11/2006\tIndia in Pak...   NaN
1   Pakistan\tIndia\t2006\t2/13/2006\tIndia in Pak...   NaN
2   Pakistan\tIndia\t2006\t2/19/2006\tIndia in Pak...   NaN
3

0 个答案:

没有答案