保存协作结果

时间:2019-07-11 17:26:40

标签: python-2.7

我正在使用google colab,但无法将结果直接从colab保存到我的google驱动器,甚至无法保存在我的计算机中。有人可以帮我吗? 问候

2 个答案:

答案 0 :(得分:0)

您可以通过以下操作将数据保存到Google云端硬盘:

saveTable <- function(con, table_name, df) {
  # con = the ODBC connection (e.g., ch)
  # table_name = the SQL database table to append to
  # df = the data.frame() to append

  sql_code = paste("INSERT INTO",table_name,"(",paste(colnames(df),collapse=", "),") VALUES (",paste(rep("?",ncol(df)),collapse=","),")")

  sqlExecute(con, sql_code, df)
}

答案 1 :(得分:0)

安装Google驱动器后。您可以执行以下操作将工作保存在驱动器上: 1单击文件。 2单击“在驱动器中保存文件”。