ValueError:数组在python中的长度必须相同

ValueError:数组在python中的长度必须相同,python,json,pandas,dataframe,Python,Json,Pandas,Dataframe,运行以下代码时,我遇到以下错误: error msg :"ValueError: arrays must all be same length". tfl_stops.txt : 490000235Z, 490010131WB ,490000112M... 将请求作为rq导入 作为pd进口熊猫 导入json temp=pd.DataFrame() df=pd.DataFrame() 打开(“tfl_stops.txt”,encoding=“utf-8”)作为文件: fileList=[line

运行以下代码时,我遇到以下错误:

error msg :"ValueError: arrays must all be same length". tfl_stops.txt : 490000235Z, 490010131WB ,490000112M...
将请求作为rq导入
作为pd进口熊猫
导入json
temp=pd.DataFrame()
df=pd.DataFrame()
打开(“tfl_stops.txt”,encoding=“utf-8”)作为文件:
fileList=[line.strip()表示文件中的行]
对于文件列表中的ID:
r=rq.get('https://api.tfl.gov.uk/StopPoint/“+ids+”?includeCrowdingData=true')
r=r.text
temp=pd.read\u json(r)
df=pd.concat([df,temp],sort=True)。重置索引(drop=True)
df.to_csv('stop_loc.csv'))
问题:我的代码或文本文件的格式是否有问题


请共享整个错误消息以及.I共享的错误消息