我的代码是- df=pd.read_csv("file")l2=[]
for i in range(0,len(df['unions']),len(df['district'])):expected - [('Dhansagar Bagerhat', {'entities': [[(0, 8)], 'Sarankhola'],[[(10, 17)], 'AnyLabel']})]如何获得所有行</e
A = [1,2,0,0,3,4,5,-1,0,2,-1,-3,0,0,0,0,0,0,0,0,-2,-3,-4,-5,0,0,0]
返回列表中0最长序列的初始和结束索引,由于上面列表中0的最长序列是0,0,0,0,0,0,0,0,所以应该用一行python代码返回12,19作为起始和结束index.Please帮助。现在,如何找到最长序列的<e