标签: python pandas
我有以下代码
pred = pd.DataFrame( pred, index = test.device_id ) pred.columns = colnames
我希望每列的标题位于同一行。但它们并不如下图所示。我怎么能纠正这个?