【发布时间】:2022-01-14 05:25:41
【问题描述】:
我需要读取 azure blob 存储中的 python 中的 .mdb 文件并将数据帧导出为 csv,我能够读取 csv 但我无法读取 .mdb 文件。有没有其他方法可以做到这一点,请随时提出python以外的建议。
我尝试了什么:
from azure.storage.blob import BlockBlobService
import pandas as pd
import tables
STORAGEACCOUNTNAME= <storage_account_name>
STORAGEACCOUNTKEY= <storage_account_key>
LOCALFILENAME= <local_file_name>
CONTAINERNAME= <container_name>
BLOBNAME= <blob_name>
blob_service=BlockBlobService(account_name=STORAGEACCOUNTNAME,account_key=STORAGEACCOUNTKEY)
blob_service.get_blob_to_path(CONTAINERNAME,BLOBNAME,test.mdb)
# LOCALFILE is the file path
dataframe_blobdata = pd.read_csv(test.mdb)
【问题讨论】:
标签: python azure ms-access azure-functions azure-blob-storage