问题描述
当我不指定-delimiter =','时,我的代码可以工作,但它会将数据读取为一列。我已经看过解决此问题的方法,但似乎没有任何效果。 csv file?
有问题吗?<HTML Table>
编辑:用stage_df=pd.read_csv('/Users/main/Downloads/Stage.csv',sep='\t',delimiter=',',skiprows=0,header=None,low_memory=False)[14:]
stage_df.columns=[stage_df.iloc[0,:]] #name columns
print(stage_df.columns)
stage_df=stage_df.iloc[1:,0]
#stage_df.reset_index(inplace=True)
print(stage_df)
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)