【发布时间】:2020-07-27 02:50:00
【问题描述】:
我已经在 Azure 数据工厂和 Azure SQL Server 上尝试找到解决问题的方法数小时。
我无法相信做这个“简单的任务”有多么复杂。好吧,可能是我自己,我刚开始使用 azure。
我有一个 Google Drive Sheet,我想将它上传到 Microsoft Azure SQL Server 的数据表中。该文件将每小时更新一次,因此该过程将每小时运行一次。
到目前为止,我尝试了什么。
1:我创建了一个连接到https://www.excell-en.com/link-google-sheets-to-excel-tutorial 的 Excel 文件到我的 Google 工作表。我希望我能够将 azure 连接到 excel,转换为 CSV 并将其发送到 Microsoft SQL Server。失败
我在我的 Google 表格中进行了自动 CSV 导出,我可以从我的云端硬盘 https://docs.microsoft.com/en-us/azure/storage/common/storage-import-export-data-to-blobs?toc=/azure/storage/blobs/toc.json 导入外部数据。失败
-
我尝试在 azure 中运行 python 脚本。我在导入库时遇到了困难并且不成功。
import pandas as pd import CSV datagooglesheets = "https://docs.google.com/spreadsheets/d/11wCTgaHMM/export?format=csv&gid=1659475835" datadictionnaryfull = "https://docs.google.com/spreadsheets/d/1Mv8hE/export?format=csv&gid870497447" datagooglesheets=pd.read_csv(datagooglesheets, sep=",", error_bad_lines=False, index_col=False, dtype="unicode",low_memory=False, na_values=["NA"]) datadictionnaryfull=pd.read_csv(datadictionnaryfull, sep=",", error_bad_lines=False, index_col=False, dtype="unicode",low_memory=False, na_values=["NA"]) datadictionnaryfull.rename(columns = {"drug_name":"all_drug_name"}, inplace = True) 试一试,我可以这样加载外部 google CSV 文件吗? https://abouconde.com/2019/03/03/attach-or-detach-an-external-storage-account-microsoft-azure-storage-explorer/
非常感谢任何免费的解决方案!
工作流程是
- 在 Azure Excel 工作表/或 google 工作表/或来自 Google Drive 的 Csv/或 Microsoft Drive 上的 CSV 中加载
- 将数据导入 Azure(每小时安排一次)
- 在 Azure SQL Server 数据表中返回(每小时更新新表)
【问题讨论】:
标签: azure