python pandas loc函数 列索引不对齐问题
问题:pandas.core.indexing.IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).
data3 = pd.DataFrame(np.array(task3), index=['123','124','125','126','127','128','129'], columns=['i','status','cost','u','Cil','rtime'])
.......
j = min(data34['cost']) #data34是之前设置的表,取data3中的值
data35 = data31.loc[data34['cost'] == j]
print(data35)