Convert each tuple to dictionary, pass to DataFrame
constructor and last add DataFrame.reindex
for change order and also add missing columns:
df = pd.DataFrame([dict(x) for x in tuples])
df = df.reindex(range(df.columns.min(), df.columns.max() + 1), axis=1)
print (df)
1 2 3 4 5 6
0 NaN NaN NaN NaN 0.45 0.56
1 0.23 0.54 NaN NaN NaN 0.63
2 NaN NaN 0.86 NaN NaN 0.36
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…