dfarr = [df_0, df_1, df_2, df_3, df_4,]
df_0,df_1 ...是数据帧,dfarr是列表。
count = [0.14814814814814814, 0.0, 0.03571428571428571, 0.07692307692307693, 0.75]
threshold = 0.18
for i in range(len[count]):
if (threshold<count[i]):
th = count.index(min(count)) - 1
dfarr[th].append(dfarr[i])
(i need to append data to df_1 (th=1) from df_4 i = 4)
问题:所以基本上我需要使用阈值将数据行中的特定行附加到下一个数据帧。每个数据帧都有其阈值,该阈值存储在另一个数组中。因此,通过比较阈值,必须将数据帧中具有最大阈值的一行追加到最小阈值