【发布时间】:2021-04-13 17:00:16
【问题描述】:
我想使用 azure sdk12 python 库直接从 blob 存储中探索 .tsv 文件。
目前,我正在使用以下模式:
from io import BytesIO
from azure.storage.blob import BlobServiceClient
import pandas as pd
with BytesIO() as bytestream:
blob_client.download_blob().download_to_stream(bytestream)
bytestream.seek(0)
df = pd.read_table(bytestream)
但是,这让我觉得这是一个有点罗嗦的选择。有没有更简洁的方法?
【问题讨论】: