我无法将数据框保存到.csv文件

时间:2019-01-25 14:33:51

标签: python pandas export-to-csv

submission=pd.DataFrame({"image_name":ID,'label':predictions.tolist()})
submission.to_csv(submission,index=False,encoding="utf-8")

出现以下错误

'DataFrame' object has no attribute 'close'

1 个答案:

答案 0 :(得分:0)

这应该有效:

const stockSchema = new Schema({
  symbol: { type: String, required: true },
  date: { type: Date, required: true },
  values: {
    month: {
      value: { type: Number, required: true },
      day: {
        value: { type: Number, required: true },
        open: { type: Number },
        close: { type: Number },
        low: { type: Number },
        high: { type: Number },
        volume: { type: Number }
      }
    }
  }
});