我本地有个129M的excel文件,就一个sheet,里面有90万行数据
pd.read_excel(file1)
pd.read_excel(file1,nrows=1)
pd.read_excel(file2,usecols='A:C',skipfooter=899999)
上述3种方法,无论哪种,读取速度都慢得不行,我不知道要多久,超过5分钟我就停了,有没有什么办法可以快速读取excel数据的
我本地有个129M的excel文件,就一个sheet,里面有90万行数据
pd.read_excel(file1)
pd.read_excel(file1,nrows=1)
pd.read_excel(file2,usecols='A:C',skipfooter=899999)
上述3种方法,无论哪种,读取速度都慢得不行,我不知道要多久,超过5分钟我就停了,有没有什么办法可以快速读取excel数据的
for i in range(0,9):
data1['wo_new']=np.where((data1['dis1']>= 200)&(data1.index%9==0),data1['wo_id'],np.where((data1['dis1']<200)&
(data1.index%9==0),data1['wo_new'],np.where((data1['dis1']>= 200)&(data1.index%9!=0) ,data1['wo_id'], data1['wo_new'])))
data1['wo_new']=data1['wo_new'].shift(1)